summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/test-dhcp-option.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-25 17:34:17 +0200
committerTom Gundersen <teg@jklm.no>2014-05-26 21:31:57 +0200
commit4eb20caa4d32eb69abbf6ece4c9f22d02196f956 (patch)
tree7def80c207974685da652376cb0d491a35cfc43d /src/libsystemd-network/test-dhcp-option.c
parent1f89214e6e990a0b552f6854f87f8514ca384956 (diff)
test-dhcp-option: fix memleak
Diffstat (limited to 'src/libsystemd-network/test-dhcp-option.c')
-rw-r--r--src/libsystemd-network/test-dhcp-option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c
index 4482a6783c..92c58e0d58 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;