Re: cu coredumps

看板DFBSD_bugs作者時間21年前 (2004/10/28 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/19 (看更多)
Mark Cullen wrote: > Timour Ezeev wrote: > >> I think you got small memory leak there IMHO (either tmp_cp is not used >> but allocated or cp is lost). >> >> > > > I think I see what you mean with the tmp_cp allocated but not used. I > don't think I get you on the cp is lost part though. Is the attached better? > > Also, where would I put the free() exactly? I forgot about that.. Actually, would I free(cp) just before reassigning cp to tmp_cp? Then assuming cp got free'd later on in the code would that then be free'ing tmp_cp? I'm guessing it wouldn't work quite like that, would it? -- Internet Explorer? Try FireFox at http://www.mozilla.org/products/firefox/ Outlook Express? Try ThunderBird at http://www.mozilla.org/products/thunderbird/
文章代碼(AID): #11V-9z00 (DFBSD_bugs)
文章代碼(AID): #11V-9z00 (DFBSD_bugs)