aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--amdgpu/amdgpu_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index f4ede031..cad7133d 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -131,10 +131,10 @@ static int amdgpu_get_auth(int fd, int *auth)
131 131
132static void amdgpu_device_free_internal(amdgpu_device_handle dev) 132static void amdgpu_device_free_internal(amdgpu_device_handle dev)
133{ 133{
134 amdgpu_vamgr_deinit(dev->vamgr);
135 free(dev->vamgr);
136 amdgpu_vamgr_deinit(dev->vamgr_32); 134 amdgpu_vamgr_deinit(dev->vamgr_32);
137 free(dev->vamgr_32); 135 free(dev->vamgr_32);
136 amdgpu_vamgr_deinit(dev->vamgr);
137 free(dev->vamgr);
138 util_hash_table_destroy(dev->bo_flink_names); 138 util_hash_table_destroy(dev->bo_flink_names);
139 util_hash_table_destroy(dev->bo_handles); 139 util_hash_table_destroy(dev->bo_handles);
140 pthread_mutex_destroy(&dev->bo_table_mutex); 140 pthread_mutex_destroy(&dev->bo_table_mutex);