Re: [CODE] free() issues

From: Christian Loth (chris@gidayu.max.uni-duisburg.de)
Date: 09/05/00


Greetings,

On Tue, Sep 05, 2000 at 11:30:05AM -0400, Deja Augustine wrote:
>
> and frame #1 yielded:
> #1  0x8074881 in free_char (ch=0x8108fd0) at db.c:2297
> 2297          free(ch->player_specials->poofin);
>
> One more time, I've checked and re-checked, and there IS a char* poofin; in
> the player_special_data struct.  I'm at a total loss...

How do you set the ch->player_specials->poofin? Do you let it simply
point to a 'static' char[] array, or do you use malloc and strcpy?

Please post your load-player function where poofin and poofout are
set.

- Chris

--
Christian Loth
Coder of 'Project Gidayu'
Computer Science Student, University of Dortmund
chris@gidayu.mud.de - http://gidayu.mud.de


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT