[Mesa-dev] [PATCH 1/2] st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate.

Christian König deathsimple at vodafone.de
Fri Feb 22 01:58:49 PST 2013


Am 22.02.2013 07:25, schrieb Vinson Lee:
> Fixes resource leak defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
>   src/gallium/state_trackers/vdpau/output.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c
> index a835126..8237eac 100644
> --- a/src/gallium/state_trackers/vdpau/output.c
> +++ b/src/gallium/state_trackers/vdpau/output.c
> @@ -86,6 +86,7 @@ vlVdpOutputSurfaceCreate(VdpDevice device,
>      if (!res) {
>         pipe_mutex_unlock(dev->mutex);
>         FREE(dev);
> +      FREE(vlsurface);
>         return VDP_STATUS_ERROR;
>      }
>   



More information about the mesa-dev mailing list