From 7efe273ae4a30b7e617678a9a1933cbfcf8608e1 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Thu, 16 Aug 2018 15:23:13 -0300 Subject: [PATCH] bfdd: fix zebra_ptm adapter memory leak Memory leak detect with Address Sanitizer and topotests. Signed-off-by: Rafael Zalamena --- zebra/zebra_ptm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index cc2d5d411d..3f52514cdf 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)