[FFmpeg-devel] [PATCH] swresample/swresample: Cleanup on init failure.

Michael Niedermayer michaelni at gmx.at
Thu Jun 4 12:10:43 CEST 2015


On Thu, Jun 04, 2015 at 12:58:56AM -0300, James Almer wrote:
> On 03/06/15 10:47 PM, Michael Niedermayer wrote:
> > This avoids leaks if the user doest call swr_close() after a failed init
> 
> This should be backported then, since the doxy mentions swr_init() can be used
> without swr_close(), so quite a few cases probably exist by now.
> 
> > 
> > Found-by: jamrial
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libswresample/swresample.c |   34 ++++++++++++++++++++++++----------
> >  1 file changed, 24 insertions(+), 10 deletions(-)
> 
> Should be ok.

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150604/f45ad86c/attachment.asc>


More information about the ffmpeg-devel mailing list