]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Prevent accidental re memory leak in odd case
authorDonald Sharp <sharpd@nvidia.com>
Wed, 26 Jun 2024 17:21:38 +0000 (13:21 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 27 Aug 2024 10:25:34 +0000 (06:25 -0400)
commit9bc0cd8241f39e4fd751edfa52c09fae6db2db1c
tree927b634c06c3dc7f269cae17020cfd954461ec39
parentd528c02a204086da0d542d5655b8724de681a65c
zebra: Prevent accidental re memory leak in odd case

There exists a path in rib_add_multipath where if a decision
is made to not use the passed in re, we just drop the memory
instead of freeing it.  Let's free it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_rib.c