avutil/lzo: fix resource leak
authorRuoyu <liangry@ucweb.com>
Sat, 11 Oct 2014 03:50:20 +0000 (11:50 +0800)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Oct 2014 10:15:26 +0000 (12:15 +0200)
Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/lzo.c

index 7b027ee..bca10ec 100644 (file)
@@ -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