]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rtadv.c
*: fix coverity warnings - resource leaks
authorRenato Westphal <renato@opensourcerouting.org>
Sun, 22 Oct 2017 23:14:21 +0000 (21:14 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 24 Oct 2017 21:30:30 +0000 (19:30 -0200)
commit44f12f209f7019c0abbec0f919cb18a136cd7bee
tree68eb68f5f5655eb8de51b4ebbde386500bd0b51b
parenta1d6bbb1f30d638a039db2b5e5ef3ea542590b62
*: fix coverity warnings - resource leaks

These are mostly trivial fixes for leaks in the error path of some functions.

The changes in bgpd/bgp_mpath.c deserves a bit of explanation though. In
the bgp_info_mpath_aggregate_update() function, we were allocating memory
for the lcomm variable but doing nothing with it. Since the code for
communities, extended communities and large communities is pretty much
the same in this function, it's clear that this was a copy and paste
error where most of the ext. community code was copied but not all of
it as it should have been.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_mpath.c
lib/hash.c
ripngd/ripngd.c
tools/start-stop-daemon.c
vtysh/vtysh.c
zebra/rtadv.c