mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
Fix core dump with `fortune -f'.
This commit is contained in:
parent
64373ec6f7
commit
116e55ff82
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue