Skip to content

Commit

Permalink
Bugfix for infinite loop/touching free()'d memory during PHYSFS_deini…
Browse files Browse the repository at this point in the history
…t().
  • Loading branch information
icculus committed Jul 9, 2001
1 parent fabb803 commit 2827a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physfs.c
Expand Up @@ -152,7 +152,7 @@ static void freeErrorMessages(void)

for (i = errorMessages; i != NULL; i = next)
{
next = i;
next = i->next;
free(i);
} /* for */
} /* freeErrorMessages */
Expand Down Expand Up @@ -414,7 +414,7 @@ static void freeSearchPath(void)
{
for (i = searchPath; i != NULL; i = next)
{
next = i;
next = i->next;
freeDirInfo(i, openReadList);
} /* for */
searchPath = NULL;
Expand Down

0 comments on commit 2827a86

Please sign in to comment.