From 425d8c2578a1e51ecbbc2ac6138af68817a52cb0 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 31 Oct 2015 18:04:26 +1000 Subject: [PATCH] virgl/vtest: fix extra malloc This somehow got added twice, drop the first one. Reported by Coverity. Signed-off-by: Dave Airlie --- src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2