Module: Mesa Branch: master Commit: 425d8c2578a1e51ecbbc2ac6138af68817a52cb0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=425d8c2578a1e51ecbbc2ac6138af68817a52cb0
Author: Dave Airlie <[email protected]> Date: Sat Oct 31 18:04:26 2015 +1000 virgl/vtest: fix extra malloc This somehow got added twice, drop the first one. Reported by Coverity. Signed-off-by: Dave Airlie <[email protected]> --- 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 01ee710..4541419 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); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
