Commit f81c3eaf authored by Loren Merritt's avatar Loren Merritt

fix a small memleak.

patch by Limin Wang.


git-svn-id: svn://svn.videolan.org/x264/trunk@628 df754926-b1dd-0310-bc7b-ec298dee348c
parent 62fc8a9c
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment