********> bugfix.46 Author: Bill Ross Date: 20 Aug 1999 Programs: xleap Severity: moderate Description: xleap could crash when popping up any 'load' window, because of a mistake in memory use in the generation of lists of files in a directory. Fix: Make the following change to sysdepend.c: ------------------------------------------------------------------------------ *** OLD sysdepend.c --- NEW sysdepend.c *************** *** 269,275 if (strcmp(namelist->d_name, ".") == 0) /*do not take into account . dir*/ continue; (void) strcpy ((char*)((*saPNames)[i++]), (char*)(namelist->d_name)); - free ((char*)namelist); } closedir(dp); --- 269,274 ----- if (strcmp(namelist->d_name, ".") == 0) /*do not take into account . dir*/ continue; (void) strcpy ((char*)((*saPNames)[i++]), (char*)(namelist->d_name)); } closedir(dp); ------------------------------------------------------------------------------