mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 17:40:04 +00:00
![]() Subject: [zebra 19080] suspected memory leakage upon static route deletion upon deletion of a static route entry, at the end of zebra/zebra_rib.c/static_delete_ipv4(), there's a call to XFREE to deallocate the 'struct static_ipv4'. However, in the case of a static with ifname as nexthop (type==STATIC_IPV4_IFNAME), this struct holds a pointer to a dynamically allocated ifname string buffer (si->gate.ifname, see its allocation within static_add_ipv4() using XSTRDUP). IMO, the attached patch is required. Notes: the same applies to IPv6 statics as well (fix included in patch); and, I admit I haven't yet tested that, but it seems simple enough to be working... ;-> |
||
---|---|---|
bgpd | ||
doc | ||
guile | ||
init | ||
lib | ||
ospf6d | ||
ospfclient | ||
ospfd | ||
ports | ||
redhat | ||
ripd | ||
ripngd | ||
tools | ||
vtysh | ||
zebra | ||
.cvsignore | ||
acconfig.h | ||
AUTHORS | ||
ChangeLog | ||
config.guess | ||
config.sub | ||
configure.ac | ||
configure.in | ||
COPYING | ||
COPYING.LIB | ||
depcomp | ||
INSTALL | ||
install-sh | ||
Makefile.am | ||
missing | ||
mkinstalldirs | ||
NEWS | ||
README | ||
REPORTING-BUGS | ||
SERVICES | ||
stamp-h.in | ||
TODO | ||
update-autotools |
GNU Zebra is free software that manages various IPv4 and IPv6 routing protocols. Currently GNU Zebra supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng. See the file INSTALL for building and installation instructions. See the file REPORTING-BUGS to report bugs. GNU Zebra is free software. See the file COPYING for copying conditions.