fix[hal_av1d_vdpu383]: memleak for cdf_bufs

Change-Id: I0a61239e3b4922569d7cda7afc80e0a842b8565a
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
Ding Wei
2024-04-03 10:47:22 +08:00
parent 142299c013
commit 202cf4ad5e

View File

@@ -1331,7 +1331,14 @@ static void hal_av1d_release_res(void *hal)
BUF_PUT(reg_ctx->rcb_bufs[i]); BUF_PUT(reg_ctx->rcb_bufs[i]);
vdpu_av1d_filtermem_release(reg_ctx); vdpu_av1d_filtermem_release(reg_ctx);
hal_bufs_deinit(reg_ctx->colmv_bufs); if (reg_ctx->cdf_bufs) {
hal_bufs_deinit(reg_ctx->cdf_bufs);
reg_ctx->cdf_bufs = NULL;
}
if (reg_ctx->colmv_bufs) {
hal_bufs_deinit(reg_ctx->colmv_bufs);
reg_ctx->colmv_bufs = NULL;
}
MPP_FREE(p_hal->reg_ctx); MPP_FREE(p_hal->reg_ctx);
} }