diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 1999-08-16 13:47:15 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 1999-08-16 13:47:15 +0000 |
commit | 116e55ff822e2cb9d8001bcb975ab145adbfa9f3 (patch) | |
tree | c5686a6d3cfb8ddb643f21128d6ff72ea998e668 /games | |
parent | 64373ec6f7593dda42a11d475cdf40a2ad03458d (diff) | |
download | src-116e55ff822e2cb9d8001bcb975ab145adbfa9f3.tar.gz src-116e55ff822e2cb9d8001bcb975ab145adbfa9f3.zip |
Fix core dump with `fortune -f'.
Notes
Notes:
svn path=/head/; revision=49892
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/fortune/fortune.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |