mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
asahi/virtio: fix memleak
Fixes: c64a2bbff5 ("asahi: port to stable uAPI")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38149>
This commit is contained in:
parent
240b9159f4
commit
fdef10916e
1 changed files with 1 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ agx_virtio_bo_bind(struct agx_device *dev, struct drm_asahi_gem_bind_op *ops,
|
|||
memcpy(req->payload, ops, payload_size);
|
||||
|
||||
int ret = vdrm_send_req(dev->vdrm, &req->hdr, false);
|
||||
free(req);
|
||||
if (ret) {
|
||||
fprintf(stderr, "ASAHI_CCMD_GEM_BIND failed: %d\n", ret);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue