[x264-devel] dump_yuv: Fix file handle leak
Anton Mitrofanov
git at videolan.org
Sun Jul 26 22:26:30 CEST 2015
x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Sat Jul 25 00:21:52 2015 +0300| [791d265281af1d022a72ba9e003a987e97da5c0d] | committer: Anton Mitrofanov
dump_yuv: Fix file handle leak
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=791d265281af1d022a72ba9e003a987e97da5c0d
---
encoder/encoder.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index 9323b38..9d25a77 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -1701,6 +1701,7 @@ x264_t *x264_encoder_open( x264_param_t *param )
else if( !x264_is_regular_file( f ) )
{
x264_log( h, X264_LOG_ERROR, "dump_yuv: incompatible with non-regular file %s\n", h->param.psz_dump_yuv );
+ fclose( f );
goto fail;
}
fclose( f );
More information about the x264-devel
mailing list