mirror of https://git.48k.eu/ogserver
#559 fixes memory leak in tomaConfiguracion()
Calls fclose() after fopen() to release memory.master
parent
880cc90c14
commit
a927e14133
|
@ -84,6 +84,8 @@ static bool tomaConfiguracion(const char *filecfg)
|
|||
line = fgets(buf, sizeof(buf), fcfg);
|
||||
}
|
||||
|
||||
fclose(fcfg);
|
||||
|
||||
if (!servidoradm[0]) {
|
||||
syslog(LOG_ERR, "Missing SERVIDORADM in configuration file\n");
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue