From 2a1872fd1d4c624585cd943296fda5a849fd5a01 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 30 Jul 2022 01:49:40 +0200 Subject: [PATCH] Fix leak of abandoned buffer in anal_block_cb() --- libr/core/canal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libr/core/canal.c b/libr/core/canal.c index 70cd9148ad..fadea2a433 100644 --- a/libr/core/canal.c +++ b/libr/core/canal.c @@ -3462,6 +3462,7 @@ static bool anal_block_cb(RAnalBlock *bb, BlockRecurseCtx *ctx) { } } if (skip_bb) { + free (buf); return false; } int *parent_reg_set = r_pvector_at (&ctx->reg_set, r_pvector_len (&ctx->reg_set) - 1);