PennMUSH Community

Changeset 1192

Show
Ignore:
Timestamp:
01/02/08 21:01:46 (1 year ago)
Author:
shawnw
Message:

Fixed rare double free() in help file reindexing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/CHANGES.182

    r1183 r1192  
    1414========================================================================== 
    1515Version 1.8.2 patchlevel 9                     ??? ??, 2008 
     16 
     17Fixes: 
     18 * Hard-to-trigger double free() in help file reindexing fixed. 
    1619 
    1720Functions: 
  • 1.8.3/branches/devel/game/txt/motd.txt

    r258 r1192  
    22-------------------------------------------------------------------------- 
    33Yell at your god to personalize this file 
    4  
     4I did, I did! You wascally wabbit. 
  • 1.8.3/branches/devel/src/help.c

    r1159 r1192  
    159159  help_file *curr; 
    160160 
    161   for (curr = (help_file *) hash_firstentry(&help_files); 
    162        curr; curr = (help_file *) hash_nextentry(&help_files)) { 
     161  for (curr = hash_firstentry(&help_files); 
     162       curr; curr = hash_nextentry(&help_files)) { 
    163163    if (curr->indx) { 
    164       mush_free((Malloc_t) curr->indx, "help_index"); 
     164      mush_free(curr->indx, "help_index"); 
     165      curr->indx = NULL; 
    165166      curr->entries = 0; 
    166167    }