vrrpd: fix a few bad XFREEs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2019-01-23 22:30:02 +00:00
parent 8071d5c3e3
commit b79640e4b0

View File

@ -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: