PennMUSH Community
Show
Ignore:
Timestamp:
01/02/08 21:01:35 (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/trunk/src/help.c

    r1167 r1191  
    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    }