Fix leak of abandoned buffer in anal_block_cb()

This commit is contained in:
Paul B Mahol 2022-07-30 01:49:40 +02:00 committed by pancake
parent a4b9260efd
commit 2a1872fd1d

View File

@ -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);