[vlc-devel] stereo enhancer audio effect

Sukrit Sangwan sukritsangwan at gmail.com
Fri Mar 9 17:48:43 CET 2012


+    p_sys->pf_begin = calloc( p_sys->i_len + 2, sizeof(float) );
> +    if( unlikely(!p_sys->pf_begin) )
> +        return VLC_ENOMEM;
>
> That's a memory leak.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
> http://fi.linkedin.com/in/remidenis
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>

Fixed it. Freed p_sys first and then return VLC_ENOMEM.

-- 
Thnaks
Sukrit Sangwan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120309/6ac49fac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-stereo_widen.c-a-new-audio-filter-to-enhance-stereo-.patch
Type: text/x-patch
Size: 6359 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120309/6ac49fac/attachment.bin>


More information about the vlc-devel mailing list