diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-08-16 20:23:13 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-08-16 23:33:32 +0200 |
commit | 7efe273ae4a30b7e617678a9a1933cbfcf8608e1 (patch) | |
tree | 0c70aca78b547c643baacd25f0f92b900aae05ca /zebra/zebra_ptm.c | |
parent | bfdd: improve ptm_adapter log messages (diff) | |
download | frr-7efe273ae4a30b7e617678a9a1933cbfcf8608e1.tar.xz frr-7efe273ae4a30b7e617678a9a1933cbfcf8608e1.zip |
bfdd: fix zebra_ptm adapter memory leak
Memory leak detect with Address Sanitizer and topotests.
Signed-off-by: Rafael Zalamena <rzalamena@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 cc2d5d411..3f52514cd 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -1283,6 +1283,7 @@ static void zebra_ptm_send_bfdd(struct stream *msg) } stream_free(msgc); + stream_free(msg); } static void zebra_ptm_send_clients(struct stream *msg) @@ -1323,6 +1324,7 @@ static void zebra_ptm_send_clients(struct stream *msg) } stream_free(msgc); + stream_free(msg); } static int _zebra_ptm_bfd_client_deregister(struct zserv *zs) |