summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/virgl/drm/virgl_drm_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
index 8a74c409297..11542f57962 100644
--- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
+++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
@@ -518,7 +518,7 @@ static struct virgl_cmd_buf *virgl_drm_cmd_buf_create(struct virgl_winsys *qws)
FREE(cbuf);
return NULL;
}
- cbuf->res_hlist = malloc(cbuf->nres * sizeof(uint32_t));
+ cbuf->res_hlist = MALLOC(cbuf->nres * sizeof(uint32_t));
if (!cbuf->res_hlist) {
FREE(cbuf->res_bo);
FREE(cbuf);