[LIP] free issue: contd from a previous thread.

Shehjar Tikoo <shehjar_tikoo-/[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
Hi all.
 
First of all thanks for replying to the previous
queries. 
 I did try out what was stated in one of the mails for
resolving the issue with free.

This is what I did.

------------
void freepthead(ptnode **head) {


-......
 ....


free(*head);
(*head)=NULL;

}
--------------

Then i call as:
-------------
pthead *h;

....
...
freepthead(&h);
--------------

Then when I do a fprintf on the path member of the
pthead,  I a get some junk characters instead of the
Seg Fault.

Thanks in advance,Also is there a reference material
for such multiple levels of pointers.

Shehjar

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.