<span class="gmail_quote"></span>Hi, everyone<br><br>I found huge memory leak in the x264. There are at least 3 positions which has memory leak. Such as below:<br><br>1. The function "x264_mb_analyse_load_costs" in file "
analyse.c". Here only "malloc" the buffer for the parameter "*p_cost_mv[52]". But not free them in the end. It should be freed at the function "x264_encoder_close".
<br><br>2. The parameter "i_refs" in the function "x264_macroblock_cache_end" should be computed like in the "x264_macroblock_cache_init". Otherwise it will cause memory leak.<br><br>3. Not all the new "x264_frame_t" are deleted at the end of encoding. So it cause huge memory leak.
<br><br>I have corrected them. But I am unable to write patch file. So I had to put my changed project for windows. My way is not the best. Somebody can reference from it to generate the better way. Please put in your patch file if you have better ideas.
<br><br>Thank you very much.<br><br>
<br clear="all">