ilo: free transfers with util_slab_free()

We used FREE() in one of the error path.
This commit is contained in:
Chia-I Wu
2014-07-27 04:55:24 +08:00
parent 1d3e06c216
commit 91656eb375
+1 -1
View 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;
}