winsys/virgl: use MALLOC to match FREE
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 28 Oct 2015 12:28:35 +0000 (12:28 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Oct 2015 17:37:09 +0000 (17:37 +0000)
The uppercase versions are wrappers which must be matched.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c

index 8a74c4092979af2313ff3288d89a80accfbc7d0c..11542f57962107d31b5cfa86280cd5f6333eeb69 100644 (file)
@@ -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);