[Libva] [PATCH] Fix missing fclose(yuv_fp) if exit in switch case default

Lim Siew Hoon siew.hoon.lim at intel.com
Thu Jun 23 03:07:18 UTC 2016


Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
---
 test/encode/jpegenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/encode/jpegenc.c b/test/encode/jpegenc.c
index b68bb2e..f86243e 100644
--- a/test/encode/jpegenc.c
+++ b/test/encode/jpegenc.c
@@ -967,6 +967,7 @@ int main(int argc, char *argv[])
         
         default: {
             printf("Unsupported format:\n");
+            fclose(yuv_fp);
             show_help();
             return -1;
         }
-- 
2.1.0



More information about the Libva mailing list