ripngd: fix packet buffer memleak

Fix #668

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2017-06-06 15:47:49 +00:00
parent 7de6a87b55
commit 0581e54dcf

View File

@ -2971,6 +2971,9 @@ ripng_clean()
XFREE (MTYPE_ROUTE_TABLE, ripng->route);
XFREE (MTYPE_ROUTE_TABLE, ripng->aggregate);
stream_free (ripng->ibuf);
stream_free (ripng->obuf);
XFREE (MTYPE_RIPNG, ripng);
ripng = NULL;
} /* if (ripng) */