[vlc-devel] [PATCH] decoder: fix leak on error
Steve Lhomme
robux4 at gmail.com
Tue Jul 18 10:22:39 CEST 2017
Ah no, it's released elsewhere when the returned decoder is released...
On Tue, Jul 18, 2017 at 10:20 AM, Steve Lhomme <robux4 at videolabs.io> wrote:
> ---
> src/input/decoder.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/input/decoder.c b/src/input/decoder.c
> index 502301de35..4663145332 100644
> --- a/src/input/decoder.c
> +++ b/src/input/decoder.c
> @@ -1796,6 +1796,7 @@ static decoder_t * CreateDecoder( vlc_object_t *p_parent,
> break;
> default:
> msg_Err( p_dec, "unknown ES format" );
> + free( p_owner );
> UnloadDecoder( p_dec );
> return p_dec;
> }
> --
> 2.12.1
>
More information about the vlc-devel
mailing list