mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
nhrpd: Fix memory leak in error path when forwarding packets
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
This commit is contained in:
parent
d0c9d09aa9
commit
ba113ac64e
@ -1083,6 +1083,7 @@ static void nhrp_peer_forward(struct nhrp_peer *p,
|
|||||||
err:
|
err:
|
||||||
nhrp_packet_debug(pp->pkt, "FWD-FAIL");
|
nhrp_packet_debug(pp->pkt, "FWD-FAIL");
|
||||||
zbuf_free(zb);
|
zbuf_free(zb);
|
||||||
|
zbuf_free(zb_copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nhrp_packet_debug(struct zbuf *zb, const char *dir)
|
static void nhrp_packet_debug(struct zbuf *zb, const char *dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user