summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-10-31 18:04:26 +1000
committerDave Airlie <[email protected]>2015-10-31 18:05:33 +1000
commit425d8c2578a1e51ecbbc2ac6138af68817a52cb0 (patch)
treec0158ed83a27ec4107da520baac473b09869f8e1 /src/gallium
parent8d731ebd33211d8b9c108fa60bfc854b2a8464c5 (diff)
virgl/vtest: fix extra malloc
This somehow got added twice, drop the first one. Reported by Coverity. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-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);