From 91656eb3755f71998f2cf07b4f403ec990b2e56b Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 27 Jul 2014 04:55:24 +0800 Subject: [PATCH] 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 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; } -- 2.30.2