aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-07-27 04:55:24 +0800
committerChia-I Wu <[email protected]>2014-07-28 22:57:22 +0800
commit91656eb3755f71998f2cf07b4f403ec990b2e56b (patch)
treed64a2c0429ae9be20d5f5b078d594715adcf6f58 /src/gallium/drivers/ilo
parent1d3e06c21670df4b83c15e39cbac0bc646177e0b (diff)
ilo: free transfers with util_slab_free()
We used FREE() in one of the error path.
Diffstat (limited to 'src/gallium/drivers/ilo')
-rw-r--r--src/gallium/drivers/ilo/ilo_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_transfer.c b/src/gallium/drivers/ilo/ilo_transfer.c
index f55bd261f75..906c20162ce 100644
--- 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;
}