]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: free ptm message on error
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 6 Jan 2020 17:09:23 +0000 (12:09 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 15 Jan 2020 17:52:07 +0000 (12:52 -0500)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/zebra_ptm.c

index cefbae54589e00721b246326763f3f7152948a68..55cb28ffc0b6a1b7bbee8d43b34cbaa515b6bccf 100644 (file)
@@ -1431,6 +1431,7 @@ static void _zebra_ptm_reroute(struct zserv *zs, struct zebra_vrf *zvrf,
        return;
 
 stream_failure:
+       stream_free(msgc);
        zlog_err("%s:%d failed to registrate client pid", __FILE__, __LINE__);
 }