mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 10:08:41 +00:00
vrrpd: fix a few bad XFREEs
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
8071d5c3e3
commit
b79640e4b0
@ -232,7 +232,8 @@ static struct vrrp_router *vrrp_router_create(struct vrrp_vrouter *vr,
|
||||
}
|
||||
}
|
||||
|
||||
XFREE(MTYPE_TMP, ifps);
|
||||
if (ifps_cnt)
|
||||
XFREE(MTYPE_TMP, ifps);
|
||||
|
||||
char ethstr[ETHER_ADDR_STRLEN];
|
||||
prefix_mac2str(&r->vmac, ethstr, sizeof(ethstr));
|
||||
@ -505,8 +506,6 @@ static int vrrp_read(struct thread *thread)
|
||||
vrrp_recv_advertisement(r, pkt, pktsize);
|
||||
}
|
||||
|
||||
XFREE(MTYPE_TMP, pkt);
|
||||
|
||||
resched = true;
|
||||
|
||||
done:
|
||||
|
Loading…
Reference in New Issue
Block a user