projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d731eb
)
virgl/vtest: fix extra malloc
author
Dave Airlie
<airlied@gmail.com>
Sat, 31 Oct 2015 08:04:26 +0000
(18:04 +1000)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
b/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
index 01ee710b8cd91360ed9ccbc5f845494bdcbd45d3..4541419d8e85a6f350df0ec8d9682ad310b4f77c 100644
(file)
--- 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);