From 4eb20caa4d32eb69abbf6ece4c9f22d02196f956 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sun, 25 May 2014 17:34:17 +0200 Subject: [PATCH] test-dhcp-option: fix memleak --- src/libsystemd-network/test-dhcp-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c index 4482a6783..92c58e0d5 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; -- 2.30.2