]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-ipv4ll: clean up the event
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 13 Apr 2015 21:33:24 +0000 (23:33 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 13 Apr 2015 21:38:02 +0000 (23:38 +0200)
shuts up valgrind/sanitizers

src/libsystemd-network/test-ipv4ll.c

index 459d5c324de2f671ca2685ac0470034b71c89800..5677bfb2d26253ee8a01cdfe4f1e11ccce66cbfe 100644 (file)
@@ -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);