Freeing null pointer inside radv_amdgpu_cs.c
struct drm_amdgpu_bo_list_entry *handles = malloc(sizeof(struct drm_amdgpu_bo_list_entry) * total_buffer_count);
if (!handles) {
free(handles);
return -ENOMEM;
}
!handles
is true if handles
is nullptr, but later this nullptr is unnecessary freed.