aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormonk.liu2015-08-31 02:06:58 -0500
committerAlex Deucher2015-09-02 08:52:12 -0500
commitf17017b8e29b7fb8bf2c8b195bef5d4b0b4bc044 (patch)
tree46555735206d38b742c143fa7456b04bed993d15 /amdgpu/amdgpu_device.c
parentc3301d013444b7b5d02c58307e188e292d8cf18a (diff)
downloadexternal-libdrm-f17017b8e29b7fb8bf2c8b195bef5d4b0b4bc044.tar.gz
external-libdrm-f17017b8e29b7fb8bf2c8b195bef5d4b0b4bc044.tar.xz
external-libdrm-f17017b8e29b7fb8bf2c8b195bef5d4b0b4bc044.zip
amdgpu: fix missing deinit on vamgr_32
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com> Signed-off-by: monk.liu <monk.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_device.c')
-rw-r--r--amdgpu/amdgpu_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index 75b12e25..e5a923e6 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -132,6 +132,8 @@ static void amdgpu_device_free_internal(amdgpu_device_handle dev)
132{ 132{
133 amdgpu_vamgr_deinit(dev->vamgr); 133 amdgpu_vamgr_deinit(dev->vamgr);
134 free(dev->vamgr); 134 free(dev->vamgr);
135 amdgpu_vamgr_deinit(dev->vamgr_32);
136 free(dev->vamgr_32);
135 util_hash_table_destroy(dev->bo_flink_names); 137 util_hash_table_destroy(dev->bo_flink_names);
136 util_hash_table_destroy(dev->bo_handles); 138 util_hash_table_destroy(dev->bo_handles);
137 pthread_mutex_destroy(&dev->bo_table_mutex); 139 pthread_mutex_destroy(&dev->bo_table_mutex);