Module: Mesa Branch: master Commit: e368eefc6866d78e2a004db2fdb13e08e06e0839 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e368eefc6866d78e2a004db2fdb13e08e06e0839
Author: Jerome Glisse <jgli...@redhat.com> Date: Mon Dec 5 18:42:38 2011 -0500 r600g: fix error path and use util_slab_free Signed-off-by: Jerome Glisse <jgli...@redhat.com> --- src/gallium/drivers/r600/r600_buffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index f1b6956..f438886 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -177,7 +177,7 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, rbuffer->b.user_ptr = NULL; if (!r600_init_resource(rscreen, rbuffer, templ->width0, alignment, templ->bind, templ->usage)) { - FREE(rbuffer); + util_slab_free(&rscreen->pool_buffers, rbuffer); return NULL; } return &rbuffer->b.b.b; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit