diff options
author | SooChan Lim <sc1.lim@samsung.com> | 2021-04-26 10:44:53 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2021-04-26 10:49:39 +0900 |
commit | 5ee0e2a63400c7dda94b573a894310b3e27d3f40 (patch) | |
tree | 9fabf9143f1d8cf5d490ec49f5bdfb04ea32fb1e | |
parent | 778a8498a038fea96c94edd8df866be47649fa37 (diff) | |
download | libtbm-vigs-5ee0e2a63400c7dda94b573a894310b3e27d3f40.tar.gz libtbm-vigs-5ee0e2a63400c7dda94b573a894310b3e27d3f40.tar.bz2 libtbm-vigs-5ee0e2a63400c7dda94b573a894310b3e27d3f40.zip |
fix memory leak
Change-Id: Iac3861ac2951384af11c29afe45e2ed3ec36121a
-rw-r--r-- | src/libhal-backend-tbm-vigs/tbm_backend_vigs.c | 1 | ||||
-rwxr-xr-x | src/libtbm-vigs/tbm_bufmgr_vigs.c | 1 |
2 files changed, 2 insertions, 0 deletions
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) |