summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ptm.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2020-01-06 18:09:23 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2020-01-06 18:09:23 +0100
commit6d097bf15c1bcc6cb71b01f980dfe9a2bdd93ce9 (patch)
treec28a93a7d55d08eb0f4b5888c6551ee6882034b2 /zebra/zebra_ptm.c
parentzebra: reject ingress packets that are too large (diff)
downloadfrr-6d097bf15c1bcc6cb71b01f980dfe9a2bdd93ce9.tar.xz
frr-6d097bf15c1bcc6cb71b01f980dfe9a2bdd93ce9.zip
zebra: free ptm message on error
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_ptm.c')
-rw-r--r--zebra/zebra_ptm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c
index cefbae545..55cb28ffc 100644
--- a/zebra/zebra_ptm.c
+++ b/zebra/zebra_ptm.c
@@ -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__);
}