freeing memory

From: Kras Kresh (kras_kresh@hotmail.com)
Date: 04/13/01


if I wanted to change the object description but not the prototype..
should I be freeing it first?
ex:
free(obj->description);
obj->description = str_dup("A dagger lies here.");

I did that but the prototype kinda got screwed up...
So I'm guessing I just leave out the free()?
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST