From 2827a86e875da2efe156ac038ba646be1c4a11bf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 9 Jul 2001 00:51:46 +0000 Subject: [PATCH] Bugfix for infinite loop/touching free()'d memory during PHYSFS_deinit(). --- physfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/physfs.c b/physfs.c index 41ac0df4..d3528671 100644 --- a/physfs.c +++ b/physfs.c @@ -152,7 +152,7 @@ static void freeErrorMessages(void) for (i = errorMessages; i != NULL; i = next) { - next = i; + next = i->next; free(i); } /* for */ } /* freeErrorMessages */ @@ -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;