From 5ee0e2a63400c7dda94b573a894310b3e27d3f40 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Mon, 26 Apr 2021 10:44:53 +0900 Subject: fix memory leak Change-Id: Iac3861ac2951384af11c29afe45e2ed3ec36121a --- src/libhal-backend-tbm-vigs/tbm_backend_vigs.c | 1 + src/libtbm-vigs/tbm_bufmgr_vigs.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libhal-backend-tbm-vigs/tbm_backend_vigs.c b/src/libhal-backend-tbm-vigs/tbm_backend_vigs.c index 5da64ad..6fa2d98 100644 --- a/src/libhal-backend-tbm-vigs/tbm_backend_vigs.c +++ b/src/libhal-backend-tbm-vigs/tbm_backend_vigs.c @@ -1049,6 +1049,7 @@ hal_backend_tbm_vigs_init(void **data) fail_alloc_bo_funcs: free(bufmgr_funcs); fail_alloc_bufmgr_funcs: + drmHashDestroy(bufmgr_data->hash_bos); _tbm_vigs_bufmgr_deinitialize(bufmgr_data); fail_create_vigs_drm_device: if (bufmgr_data->fd >= 0) diff --git a/src/libtbm-vigs/tbm_bufmgr_vigs.c b/src/libtbm-vigs/tbm_bufmgr_vigs.c index bb21434..3dc7244 100755 --- a/src/libtbm-vigs/tbm_bufmgr_vigs.c +++ b/src/libtbm-vigs/tbm_bufmgr_vigs.c @@ -1069,6 +1069,7 @@ fail_alloc_bo_func: fail_register_bufmgr_func: tbm_backend_bufmgr_free_bufmgr_func(bufmgr, bufmgr_func); fail_alloc_bufmgr_func: + drmHashDestroy(bufmgr_vigs->hash_bos); vigs_drm_device_destroy(drm_dev); fail_create_vigs_drm_device: if (set_master) -- cgit v1.2.3