[Mesa-dev] [PATCH] radeonsi/compute: Fix memory leak in radeonsi_launch_grid.
Vinson Lee
vlee at freedesktop.org
Mon Jun 3 23:08:21 PDT 2013
Fixes "Resource leak" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/gallium/drivers/radeonsi/radeonsi_compute.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c
index ed51587..5fb298a 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);
}
--
1.8.1.2
More information about the mesa-dev
mailing list