Skip to content

Commit

Permalink
Merge pull request #13256 from FRRouting/mergify/bp/stable/8.4/pr-13226
Browse files Browse the repository at this point in the history
ripd: Fix memory leak for ripd's route-map (backport #13226)
  • Loading branch information
ton31337 authored Apr 11, 2023
2 parents 21eec74 + b8b3fc3 commit bc6697f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/if_rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void if_rmap_ctx_delete(struct if_rmap_ctx *ctx)
listnode_delete(if_rmap_ctx_list, ctx);
hash_clean(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);
}

Expand Down

0 comments on commit bc6697f

Please sign in to comment.