diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-12-21 21:31:10 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 02:27:08 +0200 |
commit | bb54fa3a0035e29aa97fc6638d71b8f57fe366e4 (patch) | |
tree | 937b4652335786cc0be61a83c512139b3a2104c4 /vrrpd | |
parent | vrrpd: read and validate vrrp advertisements (diff) | |
download | frr-bb54fa3a0035e29aa97fc6638d71b8f57fe366e4.tar.xz frr-bb54fa3a0035e29aa97fc6638d71b8f57fe366e4.zip |
vrrpd: fix memleak when sending advertisements
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd')
-rw-r--r-- | vrrpd/vrrp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index 285071f1c..2eaf39fbb 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -266,6 +266,8 @@ static void vrrp_send_advertisement(struct vrrp_router *r) ssize_t sent = sendto(r->sock, pkt, (size_t)pktlen, 0, &dest.sa, sockunion_sizeof(&dest)); + XFREE(MTYPE_TMP, pkt); + if (sent < 0) { zlog_warn(VRRP_LOGPFX VRRP_LOGPFX_VRID "Failed to send VRRP Advertisement", |