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

2015-06-04 Thread Michael Niedermayer
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

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

2015-06-03 Thread James Almer
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 > Sign

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

2015-06-03 Thread Michael Niedermayer
This avoids leaks if the user doest call swr_close() after a failed init Found-by: jamrial Signed-off-by: Michael Niedermayer --- libswresample/swresample.c | 34 -- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/libswresample/swresample.c b/lib