summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ptm.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2018-08-16 20:23:13 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2018-08-16 23:33:32 +0200
commit7efe273ae4a30b7e617678a9a1933cbfcf8608e1 (patch)
tree0c70aca78b547c643baacd25f0f92b900aae05ca /zebra/zebra_ptm.c
parentbfdd: improve ptm_adapter log messages (diff)
downloadfrr-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.c2
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)