diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 854a6440876..db6bd579b96 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; }