diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-04-13 23:33:24 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-04-13 23:38:02 +0200 |
commit | a64edefacbad4f3d538b45a6a65d8a5a03797d78 (patch) | |
tree | d4ce448daa239206af509a574fc91b2b6b1d4e04 /src/libsystemd-network/test-ipv4ll.c | |
parent | 3a92e4ba470611ceec6693640b05eb248d62e32d (diff) |
test-ipv4ll: clean up the event
shuts up valgrind/sanitizers
Diffstat (limited to 'src/libsystemd-network/test-ipv4ll.c')
-rw-r--r-- | src/libsystemd-network/test-ipv4ll.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-ipv4ll.c b/src/libsystemd-network/test-ipv4ll.c index 459d5c324d..5677bfb2d2 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); |