cu coredumps

Mark Cullen mark.cullen at dsl.pipex.com
Wed Oct 27 09:47:30 PDT 2004


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/





More information about the Bugs mailing list