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 @@ 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;
}