[systemd-commits] src/libsystemd-network

Tom Gundersen tomegun at kemper.freedesktop.org
Mon May 26 12:32:40 PDT 2014


 src/libsystemd-network/test-dhcp-option.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4eb20caa4d32eb69abbf6ece4c9f22d02196f956
Author: Tom Gundersen <teg at jklm.no>
Date:   Sun May 25 17:34:17 2014 +0200

    test-dhcp-option: fix memleak

diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c
index 4482a67..92c58e0 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;
 



More information about the systemd-commits mailing list