mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-29 16:58:10 +00:00
ACRN:DM:VGPU: Free the memory after creating udmabuf
In course of creating the udmabuf, udmabuf_create_list is allocated and passed to kernel. After the dmabuf is returned, it is not used any more. Need to free it otherwises it will cause the memory leak. Tracked-On: #7337 Acked-by: Wang Yu <yu1.wang@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
parent
8b7767e643
commit
0873575a03
@ -1026,6 +1026,7 @@ static struct dma_buf_info *virtio_gpu_create_udmabuf(struct virtio_gpu *gpu,
|
||||
info->dmabuf_fd = dmabuf_fd;
|
||||
atomic_store(&info->ref_count, 1);
|
||||
}
|
||||
free(list);
|
||||
return info;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user