summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
index 01ee710b8cd..4541419d8e8 100644
--- a/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
+++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
@@ -255,7 +255,7 @@ int virgl_vtest_recv_transfer_get_data(struct virgl_vtest_winsys *vws,
const struct pipe_box *box,
uint32_t format)
{
- void *line = malloc(stride);
+ void *line;
void *ptr = data;
int hblocks = util_format_get_nblocksy(format, box->height);