From 4fa2974c44a69382a1f796febf9c46fe4ea5d4c8 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 9 Jan 2020 18:50:18 -0500 Subject: [PATCH] zebra: fix bfd deregister message memleak Removing double frees accidentally introduced a memleak Signed-off-by: Quentin Young --- zebra/zebra_ptm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index b48756302a..757623a04e 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -1367,6 +1367,8 @@ static int _zebra_ptm_bfd_client_deregister(struct zserv *zs) zebra_ptm_send_bfdd(msg); + stream_free(msg); + pp_free(pp); return 0;