C programming and freeing memory - help!
From: PSI, James Woodside (woodside_at_mitre.org)
Date: 01/21/04
- Next message: Neil Horman: "Re: C programming and freeing memory - help!"
- Previous message: Neil Smyth: "Latest Hints and Tips for Linux X/Open Motif developers"
- Next in thread: Neil Horman: "Re: C programming and freeing memory - help!"
- Reply: Neil Horman: "Re: C programming and freeing memory - help!"
- Reply: John Hasler: "Re: C programming and freeing memory - help!"
- Reply: Thaddeus L Olczyk: "Re: C programming and freeing memory - help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Jan 2004 13:28:11 -0500
Hello,
I'm moving an application over from a solaris platform to linux. When
the program attempts to free previously allocated memory, I get a
segmentation fault. It ran fine under solaris. The section of code in
question is a loop where an unsigned int pointer is allocated memory and
used, and then freed. This works fine for the initial pass through the
loop, but the second time through the loop, it seg faults on the freeing
of this memory. Is there something that's needed that I'm neglecting
that wasn't needed (or overlooked) when running under solaris? Thanks.
-Jim
- Next message: Neil Horman: "Re: C programming and freeing memory - help!"
- Previous message: Neil Smyth: "Latest Hints and Tips for Linux X/Open Motif developers"
- Next in thread: Neil Horman: "Re: C programming and freeing memory - help!"
- Reply: Neil Horman: "Re: C programming and freeing memory - help!"
- Reply: John Hasler: "Re: C programming and freeing memory - help!"
- Reply: Thaddeus L Olczyk: "Re: C programming and freeing memory - help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|