Every now and again i have been getting the following bugs warnings popping up,
Log: [*****] BUG: Freeing null pointer questing.c:942
Log: [*****] BUG: Freeing null pointer questing.c:943
which is the 2 strfree's in the fragment below,
Now i understand that the value of questroom and questarea are null, but i cannot work out how come, Should i just check for null and if so assign it a value to free, or is it safe to just the code clean it up, or is there something more wicked going on here that i need to attand too.
Oh also this is the Aurora quest code if that helps any.
Thanks in advance.
Log: [*****] BUG: Freeing null pointer questing.c:942
Log: [*****] BUG: Freeing null pointer questing.c:943
which is the 2 strfree's in the fragment below,
else if (xIS_SET(ch->act,PLR_QUESTOR))
{
if (--ch->pcdata->countdown <= 0)
{
char buf [MAX_STRING_LENGTH];
ch->pcdata->nextquest = 5;
sprintf(buf, "You have run out of time for your quest!\n\rYou may quest again in %d minutes.\n\r",ch->pcdata->nextquest);
send_to_char(buf, ch);
xREMOVE_BIT(ch->act, PLR_QUESTOR);
STRFREE(ch->pcdata->questroom);
STRFREE(ch->pcdata->questarea);
ch->pcdata->questgiver = NULL;
ch->pcdata->countdown = 0;
ch->pcdata->questmob = 0;
}
if (ch->pcdata->countdown > 0 && ch->pcdata->countdown < 3)
{
send_to_char("Better hurry, you're almost out of time for your quest!\n\r",ch);
return;
}
}
Now i understand that the value of questroom and questarea are null, but i cannot work out how come, Should i just check for null and if so assign it a value to free, or is it safe to just the code clean it up, or is there something more wicked going on here that i need to attand too.
Oh also this is the Aurora quest code if that helps any.
Thanks in advance.