[FFmpeg-devel] [PATCH] avutil/lzo: fix resource leak

Ruoyu liangry at ucweb.com
Sat Oct 11 05:50:20 CEST 2014


Signed-off-by: Ruoyu <liangry at ucweb.com>
---
 libavutil/lzo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/lzo.c b/libavutil/lzo.c
index 7b027ee..bca10ec 100644
--- a/libavutil/lzo.c
+++ b/libavutil/lzo.c
@@ -254,6 +254,7 @@ STOP_TIMER("lzod")
         av_log(NULL, AV_LOG_ERROR, "decompression incorrect\n");
     else
         av_log(NULL, AV_LOG_ERROR, "decompression OK\n");
+    fclose(in);
     return 0;
 }
 #endif
-- 
1.8.3.2




More information about the ffmpeg-devel mailing list