projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d3e06c
)
ilo: free transfers with util_slab_free()
author
Chia-I Wu
<olvaffe@gmail.com>
Sat, 26 Jul 2014 20:55:24 +0000
(
04:55
+0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Mon, 28 Jul 2014 14:57:22 +0000
(22:57 +0800)
We used FREE() in one of the error path.
src/gallium/drivers/ilo/ilo_transfer.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_transfer.c
b/src/gallium/drivers/ilo/ilo_transfer.c
index f55bd261f75e0b8bb40e5c285ba6256bdd5b7328..906c20162cec2bdd2855245e42700c93dc313f96 100644
(file)
--- a/
src/gallium/drivers/ilo/ilo_transfer.c
+++ b/
src/gallium/drivers/ilo/ilo_transfer.c
@@
-1026,7
+1026,7
@@
ilo_transfer_map(struct pipe_context *pipe,
if (!success) {
pipe_resource_reference(&xfer->base.resource, NULL);
-
FREE(
xfer);
+
util_slab_free(&ilo->transfer_mempool,
xfer);
*transfer = NULL;
return NULL;
}