mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-14 07:49:10 +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);
|
listnode_delete(if_rmap_ctx_list, ctx);
|
||||||
hash_clean_and_free(&ctx->ifrmaphash, (void (*)(void *))if_rmap_free);
|
hash_clean_and_free(&ctx->ifrmaphash, (void (*)(void *))if_rmap_free);
|
||||||
if (ctx->name)
|
if (ctx->name)
|
||||||
XFREE(MTYPE_IF_RMAP_CTX_NAME, ctx);
|
XFREE(MTYPE_IF_RMAP_CTX_NAME, ctx->name);
|
||||||
XFREE(MTYPE_IF_RMAP_CTX, ctx);
|
XFREE(MTYPE_IF_RMAP_CTX, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user