ilo: free transfers with util_slab_free()
authorChia-I Wu <olvaffe@gmail.com>
Sat, 26 Jul 2014 20:55:24 +0000 (04:55 +0800)
committerChia-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

index f55bd26..906c201 100644 (file)
@@ -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;
    }