[Mesa-dev] [PATCH] radeonsi/compute: Fix memory leak in radeonsi_launch_grid.
Tom Stellard
tom at stellard.net
Thu Jun 27 10:05:55 PDT 2013
Thanks Vinson, I've pushed this. Sorry for the delay.
-Tom
On Tue, Jun 25, 2013 at 09:37:07PM -0700, Vinson Lee wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list