diff options
author | Reuben Dowle <reuben.dowle@4rf.com> | 2021-04-01 03:08:40 +0200 |
---|---|---|
committer | Reuben Dowle <reuben.dowle@4rf.com> | 2021-04-01 03:52:15 +0200 |
commit | ba113ac64eea0a9fe17bf7872ab5895b34bdbbee (patch) | |
tree | 88efb78573c57b4b75cf93df042b650894280a48 /nhrpd | |
parent | nhrpd: Ensure invalid pointer is not used if two NAT extensions received (diff) | |
download | frr-ba113ac64eea0a9fe17bf7872ab5895b34bdbbee.tar.xz frr-ba113ac64eea0a9fe17bf7872ab5895b34bdbbee.zip |
nhrpd: Fix memory leak in error path when forwarding packets
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
Diffstat (limited to 'nhrpd')
-rw-r--r-- | nhrpd/nhrp_peer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 6d204e7f7..002c6470b 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) |