#559 fixes memory leak in tomaConfiguracion()

Calls fclose() after fopen() to release memory.
master
Javier Sánchez Parra 2019-07-09 10:27:46 +02:00 committed by OpenGnSys Support Team
parent 880cc90c14
commit a927e14133
1 changed files with 2 additions and 0 deletions

View File

@ -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;