1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix core dump with `fortune -f'.

This commit is contained in:
Thomas Gellekum 1999-08-16 13:47:15 +00:00
parent 64373ec6f7
commit 116e55ff82
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49892

View File

@ -548,11 +548,11 @@ FILEDESC *parent;
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;
}