[vlc-devel] [vlc-commits] twolame: add error checking

Rémi Denis-Courmont remi at remlab.net
Tue Sep 30 08:34:57 CEST 2014


Le 2014-09-30 04:07, git at videolan.org a écrit :
>          p_sys->i_nb_samples = 0;
>          p_block = block_Alloc( i_used );
> +        if( !p_block )
> +        {
> +            if( p_chain )
> +                block_Release( p_chain );

Isn't that effectively leaking the (rest of the) chain?

> +            return NULL;
> +        }

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list