From: Martin Ettl Date: Mon, 25 Oct 2010 17:14:11 +0000 (-0400) Subject: Fix leaked file descriptor with ENTROPY_STATS X-Git-Tag: v0.9.5~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3fd2c4ea7432cf568165f7da6d99140c1f0957f;p=libvpx Fix leaked file descriptor with ENTROPY_STATS cppcheck found a leaked file descriptor in the debugging code enabled by defining ENTROPY_STATS. Fixes issue #60. Change-Id: I0c1d0669cb94d44fed77860f97b82763be06b7cb --- diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 7e1583dd9..b4332b321 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -2529,6 +2529,7 @@ void vp8_remove_compressor(VP8_PTR *ptr) } fprintf(fmode, "};\n"); + fclose(fmode); } #endif