From ba113ac64eea0a9fe17bf7872ab5895b34bdbbee Mon Sep 17 00:00:00 2001 From: Reuben Dowle Date: Thu, 1 Apr 2021 14:08:40 +1300 Subject: [PATCH] nhrpd: Fix memory leak in error path when forwarding packets Signed-off-by: Reuben Dowle --- nhrpd/nhrp_peer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 6d204e7f73..002c6470b2 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -1083,6 +1083,7 @@ static void nhrp_peer_forward(struct nhrp_peer *p, err: nhrp_packet_debug(pp->pkt, "FWD-FAIL"); zbuf_free(zb); + zbuf_free(zb_copy); } static void nhrp_packet_debug(struct zbuf *zb, const char *dir)