From: Vinson Lee Date: Wed, 26 Jun 2013 04:37:07 +0000 (-0700) Subject: radeonsi/compute: Fix memory leak in radeonsi_launch_grid. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f12e5518106155fb2f17ee5e8db40eebafa23b5d;p=mesa.git radeonsi/compute: Fix memory leak in radeonsi_launch_grid. Fixes "Resource leak" defect reported by Coverity. Signed-off-by: Vinson Lee --- diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c index ed5158752ca..5fb298a0455 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_compute.c +++ b/src/gallium/drivers/radeonsi/radeonsi_compute.c @@ -234,6 +234,7 @@ static void radeonsi_launch_grid( rctx->ws->buffer_wait(shader->bo->buf, 0); FREE(pm4); + FREE(kernel_args); }