diff options
author | Emil Velikov <[email protected]> | 2015-10-28 12:28:35 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-10-30 17:37:09 +0000 |
commit | e992715da23ddb3759971bd3d1fc385c899f919a (patch) | |
tree | f9e78e7a840078a4a986e5ace8c7c3ceb8e7ca25 /src/gallium | |
parent | 72d7d1e224049f3f22e1275df99e6e8e31de0506 (diff) |
winsys/virgl: use MALLOC to match FREE
The uppercase versions are wrappers which must be matched.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 2 |
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); |