diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-11-01 21:57:53 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-28 19:15:27 +0100 |
commit | 58ac32e2d598b5dc45fa05b7a8a85b107571d697 (patch) | |
tree | f55826dc4efaec046bd339e19bcfb13cdf672ae2 /zebra/zebra_ptm.c | |
parent | bgpd: release all memory explicitly on exit (diff) | |
download | frr-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.c | 2 |
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); |