radeonsi/compute: Fix memory leak in radeonsi_launch_grid.
authorVinson Lee <vlee@freedesktop.org>
Wed, 26 Jun 2013 04:37:07 +0000 (21:37 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 27 Jun 2013 17:03:33 +0000 (10:03 -0700)
Fixes "Resource leak" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/drivers/radeonsi/radeonsi_compute.c

index ed5158752ca336038e7693860fba3010e89613b8..5fb298a0455a2934e5d40a88c08c81cd04bab28f 100644 (file)
@@ -234,6 +234,7 @@ static void radeonsi_launch_grid(
        rctx->ws->buffer_wait(shader->bo->buf, 0);
 
        FREE(pm4);
+       FREE(kernel_args);
 }