]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix ptm heap double free 5639/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 7 Jan 2020 00:48:08 +0000 (19:48 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 7 Jan 2020 00:48:08 +0000 (19:48 -0500)
Don't need to free these, they're freed by the caller.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/zebra_ptm.c

index 46f138552059f6f9edfc03287cc3bc991c2ec22f..8640a4a72026151f5114d95705559961c86f5c12 100644 (file)
@@ -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)