Fix leaking file handle for log messages when something fails.
This commit is contained in:
parent
8e5aa64b37
commit
e8a135d127
1 changed files with 1 additions and 0 deletions
1
status.c
1
status.c
|
@ -50,6 +50,7 @@ STATUS debug(int loglevel, const char *location, const char *function, ...)
|
|||
fprintf(stderr, "%s", text);
|
||||
}
|
||||
fprintf(logfile, "%s", text);
|
||||
fclose(logfile);
|
||||
return ST_GENERAL_FAILURE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue