mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-13 14:04:55 +00:00
Merge pull request #13226 from anlancs/fix/ripd-leak
ripd: Fix memory leak for ripd's route-map
This commit is contained in:
commit
bc818f2ff5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user