Fix leaked file descriptor with ENTROPY_STATS
authorMartin Ettl <ettl.martin78@googlemail.com>
Mon, 25 Oct 2010 17:14:11 +0000 (13:14 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Mon, 25 Oct 2010 17:16:39 +0000 (13:16 -0400)
cppcheck found a leaked file descriptor in the debugging code
enabled by defining ENTROPY_STATS. Fixes issue #60.

Change-Id: I0c1d0669cb94d44fed77860f97b82763be06b7cb

vp8/encoder/onyx_if.c

index 7e1583d..b4332b3 100644 (file)
@@ -2529,6 +2529,7 @@ void vp8_remove_compressor(VP8_PTR *ptr)
             }
 
             fprintf(fmode, "};\n");
+            fclose(fmode);
         }
 #endif