radeonsi/compute: Fix memory leak in radeonsi_launch_grid. 96/7196/1
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 ed51587..5fb298a 100644 (file)
@@ -234,6 +234,7 @@ static void radeonsi_launch_grid(
        rctx->ws->buffer_wait(shader->bo->buf, 0);
 
        FREE(pm4);
+       FREE(kernel_args);
 }