bantool: Close .conf files when done reading.
Not very many files are read, so leaving them open is not a major issue.
This commit is contained in:
parent
a6b29d3ed4
commit
e3a3eb92a4
1 changed files with 2 additions and 0 deletions
|
@ -542,6 +542,8 @@ import_config(const char *conf, int id)
|
||||||
if(flag.verbose)
|
if(flag.verbose)
|
||||||
fprintf(stdout, "%*s\n", strlen(bandb_suffix[id]) > 0 ? 10 : 15, "imported.");
|
fprintf(stdout, "%*s\n", strlen(bandb_suffix[id]) > 0 ? 10 : 15, "imported.");
|
||||||
|
|
||||||
|
fclose(fd);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue