X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libevent%2Ftest%2Fregress_main.c;h=42a0366ac3d159c698d9fa2064a57d20896c6bff;hb=3a84db87064922ad10ac10cc1d6833380e575995;hp=e8b2af94432fa0dcbb7da85c6b68f95b6887cc9c;hpb=85d268c10175d1e8050188a3a4797b40519a285e;p=netatalk.git diff --git a/libevent/test/regress_main.c b/libevent/test/regress_main.c index e8b2af94..42a0366a 100644 --- a/libevent/test/regress_main.c +++ b/libevent/test/regress_main.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2003-2007 Niels Provos - * Copyright (c) 2007-2010 Niels Provos and Nick Mathewson + * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -76,6 +76,7 @@ #include "tinytest.h" #include "tinytest_macros.h" #include "../iocp-internal.h" +#include "../event-internal.h" long timeval_msec_diff(const struct timeval *start, const struct timeval *end) @@ -254,8 +255,10 @@ basic_test_cleanup(const struct testcase_t *testcase, void *ptr) } if (testcase->flags & TT_NEED_BASE) { - if (data->base) + if (data->base) { + event_base_assert_ok(data->base); event_base_free(data->base); + } } free(data);