]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
coverity: fix a memory leak
authorVincent Bernat <bernat@luffy.cx>
Fri, 22 Nov 2013 22:12:02 +0000 (23:12 +0100)
committerVincent Bernat <bernat@luffy.cx>
Fri, 22 Nov 2013 22:12:02 +0000 (23:12 +0100)
A memory leak was happening when setting the description of an interface.

src/daemon/priv.c

index 9c633d65d9e474cd36f470620807d115dc87d862..e412d542bbba07c7385722c7cc0d7a78c5c7bbc3 100644 (file)
@@ -281,6 +281,7 @@ asroot_iface_description()
        TRACE(LLDPD_PRIV_INTERFACE_DESCRIPTION(name, description));
        rc = asroot_iface_description_os(name, description);
        must_write(&rc, sizeof(rc));
+       free(description);
 }
 
 static void