intel/executor: Fix a couple of memory leaks in the tool

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31120>
This commit is contained in:
Caio Oliveira 2024-09-10 11:54:00 -07:00 committed by Marge Bot
parent 3b13a0018f
commit 5e47c5f94a

View file

@ -310,6 +310,7 @@ get_drm_device(struct intel_device_info *devinfo)
break;
}
}
drmFreeDevices(devices, max_devices);
return fd;
}
@ -436,6 +437,7 @@ executor_context_setup(executor_context *ec)
}
}
assert(found_engine);
free(engines_info);
struct drm_xe_exec_queue_create queue_create = {
.vm_id = ec->xe.vm_id,