From 116e55ff822e2cb9d8001bcb975ab145adbfa9f3 Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Mon, 16 Aug 1999 13:47:15 +0000 Subject: [PATCH] Fix core dump with `fortune -f'. --- games/fortune/fortune/fortune.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 854a64408765..db6bd579b96f 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -548,11 +548,11 @@ over: fprintf(stderr, "fortune:%s not a fortune file or directory\n", path); - free((char *) fp); if (was_malloc) free(path); do_free(fp->datfile); do_free(fp->posfile); + free((char *) fp); do_free(offensive); return FALSE; }