From 791d265281af1d022a72ba9e003a987e97da5c0d Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Sat, 25 Jul 2015 00:21:52 +0300 Subject: [PATCH] dump_yuv: Fix file handle leak --- encoder/encoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/encoder/encoder.c b/encoder/encoder.c index 9323b38a..9d25a77e 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 ); -- 2.40.0