From: Loren Merritt Date: Mon, 5 Mar 2007 15:35:42 +0000 (+0000) Subject: fix a small memleak. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f81c3eafa27ad90a02c1d87a9f74b509199ddb63;p=libx264 fix a small memleak. patch by Limin Wang. git-svn-id: svn://svn.videolan.org/x264/trunk@628 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/muxers.c b/muxers.c index dc825b6e..f9d0b3db 100644 --- a/muxers.c +++ b/muxers.c @@ -106,7 +106,9 @@ int close_file_yuv(hnd_t handle) yuv_input_t *h = handle; if( !h || !h->fh ) return 0; - return fclose(h->fh); + fclose( h->fh ); + free( h ); + return 0; } /* YUV4MPEG2 raw 420 yuv file operation */ @@ -307,7 +309,9 @@ int close_file_y4m(hnd_t handle) y4m_input_t *h = handle; if( !h || !h->fh ) return 0; - return fclose(h->fh); + fclose( h->fh ); + free( h ); + return 0; } /* avs/avi input file support under cygwin */