]> git.puffer.fish Git - matthieu/frr.git/commit
ripd: Fix memory leak for ripd's route-map
authoranlan_cs <vic.lan@pica8.com>
Thu, 6 Apr 2023 13:17:05 +0000 (21:17 +0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 11 Apr 2023 11:38:25 +0000 (11:38 +0000)
commit96d074abe0eb523dec5724b8587b8fa6068a6fbf
tree784453a9e1f17b65c601afb9700c6162990dccb6
parent9bd3bc0df47661285de12bdfec61df6105864fce
ripd: Fix memory leak for ripd's route-map

When cleaning `ripd`, it should free `ctx->name` of `struct if_rmap_ctx`,
not `ctx` itself.  Otherwise, it will lead to memory leak.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit d3ec0066e5ea0edd691b939806cd7b879ac6a32a)
lib/if_rmap.c