]> granicus.if.org Git - libvpx/commitdiff
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 7e1583dd9a2b7389731e314c1e22fe97a84141e6..b4332b3217c2115b1b3fea7c736c7540c63ea1c2 100644 (file)
@@ -2529,6 +2529,7 @@ void vp8_remove_compressor(VP8_PTR *ptr)
             }
 
             fprintf(fmode, "};\n");
+            fclose(fmode);
         }
 #endif