From: Vincent Bernat Date: Fri, 1 Jan 2016 17:20:29 +0000 (+0100) Subject: lldpd: cleanup default local port on exit X-Git-Tag: 0.9.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c93725ffe89c922c182ac03864881c4346676a2;p=thirdparty%2Flldpd.git lldpd: cleanup default local port on exit Easier to spot a leak with valgrind this way. --- diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index 22de4f08..86d822d1 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -1218,6 +1218,8 @@ lldpd_exit(struct lldpd *cfg) lldpd_remote_cleanup(hardware, NULL, 1); lldpd_hardware_cleanup(cfg, hardware); } + lldpd_port_cleanup(cfg->g_default_local_port, 1); + free(cfg->g_default_local_port); interfaces_cleanup(cfg); free(cfg->g_config.c_platform);