Mesa (master): ilo: free transfers with util_slab_free()

Chia-I Wu olv at kemper.freedesktop.org
Mon Jul 28 14:58:44 UTC 2014


Module: Mesa
Branch: master
Commit: 91656eb3755f71998f2cf07b4f403ec990b2e56b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=91656eb3755f71998f2cf07b4f403ec990b2e56b

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Sun Jul 27 04:55:24 2014 +0800

ilo: free transfers with util_slab_free()

We used FREE() in one of the error path.

---

 src/gallium/drivers/ilo/ilo_transfer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/ilo/ilo_transfer.c b/src/gallium/drivers/ilo/ilo_transfer.c
index f55bd26..906c201 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;
    }




More information about the mesa-commit mailing list