Here is the document I got this bugfix from.

                              Dantin


IMC

  Problem

   The strings for IMC-related tools are only allocated, never freed.

  Patch

   In recycle.c/free_pcdata(), add the following statements:

free_string(pcdata->rreply);
free_string(pcdata->rreply_name);
free_string(pcdata->ice_listen);
----- Original Message -----
From: "Dantin" <[EMAIL PROTECTED]>
To: "Rom Mailing List" <[email protected]>
Sent: Monday, July 08, 2002 5:06 PM
Subject: Bug fixes


>      Okay here is my code:
>
> void free_pcdata(PC_DATA *pcdata)
> {
>     int alias;
>
>     if (!IS_VALID(pcdata))
>  return;
>
> #if !defined(FIRST_BOOT)
>     free_learned(pcdata->learned);
>     free_boolarray(pcdata->group_known);
> #endif
>
>     free_string(pcdata->pwd);
>     free_string(pcdata->bamfin);
>     free_string(pcdata->bamfout);
>    + free_string(pcdata->ice_listen);
>    + free_string(pcdata->rreply);
>    + free_string(pcdata->rreply_name);
>     free_string(pcdata->title);
>     free_buf(pcdata->buffer);
>
>     for (alias = 0; alias < MAX_ALIAS; alias++)
>     {
>  free_string(pcdata->alias[alias]);
>  free_string(pcdata->alias_sub[alias]);
>     }
>     INVALIDATE(pcdata);
>     pcdata->next = pcdata_free;
>     pcdata_free = pcdata;
>
>     return;
> }
>
>      The items with the + sign above is what was added to fix a problem.
> What was not included in the bug fix was how to impliment ice_listen,
> rreply, and rreply_name. Does anyone know what this person was refering to
> within the code or is this a specific programming for their mud? The
> compiler had problems with that. Porting to Windows through cygwin. Thanks
> again.
>
>                                 Dantin
>
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>


Reply via email to