DragonFly BSD
DragonFly bugs List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cu coredumps


To: Timour Ezeev <timour@xxxxxxxxxxxxxxxxxxx>
From: Mark Cullen <mark.cullen@xxxxxxxxxxxxx>
Date: Wed, 27 Oct 2004 17:47:30 +0100

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/




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]