mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 00:51:30 +00:00
fclose when fopen actually succeeds
This commit is contained in:
parent
13bcb5c5b1
commit
85c79d2f1c
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -631,8 +631,8 @@ int main(int argc, char **argv) {
|
|||
FILE *fp = fopen(OPTS_OPTION_STR(OPTION_PROGSRC), "rb");
|
||||
if (fp) {
|
||||
has_progs_src = true;
|
||||
fclose(fp);
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
if (has_progs_src) {
|
||||
|
|
Loading…
Reference in a new issue