OSDN Git Service

virgl/vtest: fix extra malloc
authorDave Airlie <airlied@gmail.com>
Sat, 31 Oct 2015 08:04:26 +0000 (18:04 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 31 Oct 2015 08:05:33 +0000 (18:05 +1000)
This somehow got added twice, drop the first one.

Reported by Coverity.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c

index 01ee710..4541419 100644 (file)
@@ -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);