mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 08:52:46 +00:00
Fix core dump with `fortune -f'.
This commit is contained in:
parent
64373ec6f7
commit
116e55ff82
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49892
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user