Re: Help : error warning: modified (chunk-) pointer
From: Kurtis D. Rader (krader_at_skepticism.us)
Date: 05/26/03
- Next message: Chris Ritchey: "Trying to learn Non-Blocking sockets on Solaris 8, please help! ready to fork() it."
- Previous message: CBFalconer: "Re: random numbers for long long?"
- In reply to: Craig: "Re: Help : error warning: modified (chunk-) pointer"
- Next in thread: Craig: "Re: Help : error warning: modified (chunk-) pointer"
- Reply: Craig: "Re: Help : error warning: modified (chunk-) pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 26 May 2003 11:43:34 -0700
On Mon, 26 May 2003 13:25:33 +0100, Craig wrote:
> Thank you for your comments, I did not use free to de-allocate the space.
> Now works perfectly. also going to "overhaul" the function.
>
> should have paid more attention to how malloc allocates memory etc.
Are you saying you simply removed the free() call? If so, all you've done
is hide the fact that your program is corrupting the malloc heap. Which
means your program still has a defect that can manifest itself in other
ways. I recommend you link your program against a debug malloc package such
as ElectricFence and actually fix whatever is wrong.
- Next message: Chris Ritchey: "Trying to learn Non-Blocking sockets on Solaris 8, please help! ready to fork() it."
- Previous message: CBFalconer: "Re: random numbers for long long?"
- In reply to: Craig: "Re: Help : error warning: modified (chunk-) pointer"
- Next in thread: Craig: "Re: Help : error warning: modified (chunk-) pointer"
- Reply: Craig: "Re: Help : error warning: modified (chunk-) pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|