]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix memory leak when disabling nexthop_hold contexts 15089/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 6 Dec 2023 17:34:02 +0000 (18:34 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 4 Jan 2024 16:12:36 +0000 (17:12 +0100)
commite266c44345f117773b85008664601107d679eee4
tree3720b43fe8a668a1070418ef84786637b62eefac
parent2aef6958f8703b484fef3462180abca9c51eed35
lib: fix memory leak when disabling nexthop_hold contexts

A memory leak is detected when stopping the sharpd daemon
with a nexthop group configuration that includes nexthops.

The nexthop_hold structure and its attributes are not
freed. Fix it by adding the missing free function.

Fixes: 98cbbaea91f6 ("lib: Handle if up/down and vrf enable/disable events")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/nexthop_group.c