mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-09 02:50:06 +08:00
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:
@@ -1331,7 +1331,14 @@ static void hal_av1d_release_res(void *hal)
|
||||
BUF_PUT(reg_ctx->rcb_bufs[i]);
|
||||
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user