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:
Eric Engestrom 2025-10-29 18:25:03 +01:00 committed by Marge Bot
parent 240b9159f4
commit fdef10916e

View file

@ -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);
}