diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-04-11 14:37:40 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-11 14:37:40 +0300 |
| commit | bc818f2ff522220bb77dafa2290f1aa8e8eac32c (patch) | |
| tree | 19668cf39be9cc482fb203a3ca595708d2569db8 /lib | |
| parent | 6231dde1ccf6cf688402666ed581e98d394da377 (diff) | |
| parent | d3ec0066e5ea0edd691b939806cd7b879ac6a32a (diff) | |
Merge pull request #13226 from anlancs/fix/ripd-leak
ripd: Fix memory leak for ripd's route-map
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/if_rmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c index 4a5bc36198..0d305a7af1 100644 --- a/lib/if_rmap.c +++ b/lib/if_rmap.c @@ -284,7 +284,7 @@ void if_rmap_ctx_delete(struct if_rmap_ctx *ctx) listnode_delete(if_rmap_ctx_list, ctx); hash_clean_and_free(&ctx->ifrmaphash, (void (*)(void *))if_rmap_free); if (ctx->name) - XFREE(MTYPE_IF_RMAP_CTX_NAME, ctx); + XFREE(MTYPE_IF_RMAP_CTX_NAME, ctx->name); XFREE(MTYPE_IF_RMAP_CTX, ctx); } |
