From aba549a82a0f276325e22419b711fa0534078bd6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 1 Jun 2013 12:07:43 +0200 Subject: [PATCH] client: fix a memory leak when changing lldpd configuration lldpd_config_cleanup() does not free the configuration structure. --- src/daemon/client.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.2