TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: Jasen Betts
date: 2003-05-24 21:54:40
subject: FREEing a pointer to a p

Hi Neil.

23-May-03 18:08:06, Neil Heller wrote to All

 NH> Now, after I've used the variables in various (nefarious) ways, I need
 NH> to free them.  However, if I go

 NH> free(pbar1->next->charvar);

if it doesn't throw the assertion if you free them immediately after
initialising them the eror must lie in the nefarious code.

Also you should check that each malloc succeeds.

 -=> Bye <=-

---
* Origin: I'm pink, therefore I'm SPAM. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.