From: Chia-I Wu Date: Sat, 26 Jul 2014 20:55:24 +0000 (+0800) Subject: ilo: free transfers with util_slab_free() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91656eb3755f71998f2cf07b4f403ec990b2e56b;p=mesa.git ilo: free transfers with util_slab_free() We used FREE() in one of the error path. --- 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; }