]> 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)
commitb8b3fc3d17fb4cdb92524f2d0b1e947a1eb04472
tree8124bdb6690f8d4a6d8b95bfd27b75a03a974b10
parent7692f6a663f5ad0f24c59a17796422a9c61844a3
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