]> git.proxmox.com Git - mirror_frr.git/commit - lib/zclient.c
lib: fix vrf_bitmap leak in zclient_free()
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Dec 2015 18:38:23 +0000 (19:38 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Sep 2016 19:41:06 +0000 (15:41 -0400)
commit615d4265871653605bb53becc09bd77b48716dbb
tree05f7a7ac46937715da537c3bdb86f76ea54b2fc5
parent2aac57679569485060a36bdee1dcf309198f07fd
lib: fix vrf_bitmap leak in zclient_free()

zclient_stop(), which is used as antagonist to zclient_init(), needs to
undo the vrf_bitmap allocation.  Otherwise zclient_init() will leak the
allocated memory, for example when zclient_reset() is used.

Reported-by: Lou Berger <lberger@labn.net>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/zclient.c