From: Tom Gundersen Date: Sun, 25 May 2014 15:34:17 +0000 (+0200) Subject: test-dhcp-option: fix memleak X-Git-Tag: v213~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4eb20caa4d32eb69abbf6ece4c9f22d02196f956;p=thirdparty%2Fsystemd.git test-dhcp-option: fix memleak --- diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c index 4482a6783cb..92c58e0d58e 100644 --- a/src/libsystemd-network/test-dhcp-option.c +++ b/src/libsystemd-network/test-dhcp-option.c @@ -300,7 +300,7 @@ static uint8_t options[64] = { static void test_option_set(void) { - DHCPMessage *result; + _cleanup_free_ DHCPMessage *result = NULL; size_t offset = 0, len, pos; unsigned i;