virgl/vtest: fix extra malloc

This somehow got added twice, drop the first one.

Reported by Coverity.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2015-10-31 18:04:26 +10:00
parent 8d731ebd33
commit 425d8c2578
@@ -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);