]> granicus.if.org Git - libevent/commitdiff
Finalize tests: add a missing check
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:39:35 +0000 (19:39 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:39:35 +0000 (19:39 -0400)
test/regress_finalize.c

index 2bcab8ba492845b9ce9ad46a075db43c6e5b0a70..61a6313f1b3bf182a3931af270ea749af3e60e74 100644 (file)
@@ -200,6 +200,7 @@ test_fin_free_finalize(void *arg)
        event_set_mem_functions(tfff_malloc, tfff_realloc, tfff_free);
 
        base = event_base_new();
+       tt_assert(base);
 
        ev = evtimer_new(base, timer_callback, &ev_called);
        ev2 = evtimer_new(base, timer_callback, &ev2_called);