From 0b60b95b1dfd1b8ecca3172c66ecb839b1afc05f Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 6 Jan 2020 19:48:08 -0500 Subject: [PATCH] zebra: fix ptm heap double free Don't need to free these, they're freed by the caller. Signed-off-by: Quentin Young --- zebra/zebra_ptm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index 55cb28ffc0..b48756302a 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -1295,7 +1295,6 @@ static void zebra_ptm_send_bfdd(struct stream *msg) } stream_free(msgc); - stream_free(msg); } static void zebra_ptm_send_clients(struct stream *msg) @@ -1327,7 +1326,6 @@ 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) -- 2.39.5