summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/fortune/fortune/fortune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 854a644..db6bd57 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;
}
OpenPOWER on IntegriCloud