From: Thomas Hindoe Paaboel Andersen Date: Mon, 13 Apr 2015 21:33:24 +0000 (+0200) Subject: test-ipv4ll: clean up the event X-Git-Tag: v220~427 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a64edefacbad4f3d538b45a6a65d8a5a03797d78;p=thirdparty%2Fsystemd.git test-ipv4ll: clean up the event shuts up valgrind/sanitizers --- diff --git a/src/libsystemd-network/test-ipv4ll.c b/src/libsystemd-network/test-ipv4ll.c index 459d5c324de..5677bfb2d26 100644 --- a/src/libsystemd-network/test-ipv4ll.c +++ b/src/libsystemd-network/test-ipv4ll.c @@ -28,6 +28,7 @@ #include "util.h" #include "socket-util.h" +#include "event-util.h" #include "sd-ipv4ll.h" #include "ipv4ll-internal.h" @@ -212,7 +213,7 @@ static void test_basic_request(sd_event *e) { } int main(int argc, char *argv[]) { - sd_event *e; + _cleanup_event_unref_ sd_event *e = NULL; assert_se(sd_event_new(&e) >= 0);