summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ptm.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-11-01 21:57:53 +0100
committerRenato Westphal <renato@opensourcerouting.org>2016-11-28 19:15:27 +0100
commit58ac32e2d598b5dc45fa05b7a8a85b107571d697 (patch)
treef55826dc4efaec046bd339e19bcfb13cdf672ae2 /zebra/zebra_ptm.c
parentbgpd: release all memory explicitly on exit (diff)
downloadfrr-58ac32e2d598b5dc45fa05b7a8a85b107571d697.tar.xz
frr-58ac32e2d598b5dc45fa05b7a8a85b107571d697.zip
zebra/lib: plug several memleaks
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_ptm.c')
-rw-r--r--zebra/zebra_ptm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c
index ebae1bd4b..28e6c42ec 100644
--- a/zebra/zebra_ptm.c
+++ b/zebra/zebra_ptm.c
@@ -140,6 +140,8 @@ zebra_ptm_finish(void)
buffer_flush_all(ptm_cb.wb, ptm_cb.ptm_sock);
+ free (ptm_hdl);
+
if (ptm_cb.out_data)
free(ptm_cb.out_data);