From: Vincent Bernat Date: Sat, 1 Jun 2013 10:07:43 +0000 (+0200) Subject: client: fix a memory leak when changing lldpd configuration X-Git-Tag: 0.7.4~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aba549a82a0f276325e22419b711fa0534078bd6;p=thirdparty%2Flldpd.git client: fix a memory leak when changing lldpd configuration lldpd_config_cleanup() does not free the configuration structure. --- diff --git a/src/daemon/client.c b/src/daemon/client.c index 41a13f00..000e3647 100644 --- a/src/daemon/client.c +++ b/src/daemon/client.c @@ -103,6 +103,7 @@ client_handle_set_configuration(struct lldpd *cfg, enum hmsg_type *type, } lldpd_config_cleanup(config); + free(config); return 0; }