]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: fix a memory leak when changing lldpd configuration
authorVincent Bernat <bernat@luffy.cx>
Sat, 1 Jun 2013 10:07:43 +0000 (12:07 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sat, 1 Jun 2013 10:07:43 +0000 (12:07 +0200)
lldpd_config_cleanup() does not free the configuration structure.

src/daemon/client.c

index 41a13f006e34a5fc2f7665432c4a05159e9816c2..000e36479cee0ca0ecd20469245647e8d509af18 100644 (file)
@@ -103,6 +103,7 @@ client_handle_set_configuration(struct lldpd *cfg, enum hmsg_type *type,
        }
 
        lldpd_config_cleanup(config);
+       free(config);
 
        return 0;
 }