]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix memory leaks in show commands
authorChristian Franke <nobody@nowhere.ws>
Tue, 14 Jun 2016 18:07:01 +0000 (20:07 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Oct 2016 00:28:26 +0000 (20:28 -0400)
commitb6175e0ca2a741e2efcf44422e014b0678cf0865
tree8fc389452abf542e0e7939c92519ebfbafe7bb17
parente531bbe2f06e01e5f890e9a62ae25b093407e4c3
bgpd: fix memory leaks in show commands

sockunion_str2su allocates a struct sockunion that used to be leaked
in the show commands. Use str2sockunion and keep the information
on the stack instead.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_encap.c