summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-08-16 17:32:42 +0000
committerderaadt <deraadt@openbsd.org>1999-08-16 17:32:42 +0000
commit1779ba93dfb82d496a82ca735420a8396f7146c8 (patch)
tree62fc27650d181f1967c9e787cff4e22e2649ee8e
parentuse O_* defines for open(2) flags and include fcntl.h (diff)
downloadwireguard-openbsd-1779ba93dfb82d496a82ca735420a8396f7146c8.tar.xz
wireguard-openbsd-1779ba93dfb82d496a82ca735420a8396f7146c8.zip
free later; tg@freebsd
-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 6614d4862e1..780d99e4128 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -537,11 +537,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;
}