diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-08 18:03:46 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-08 18:03:46 +0200 |
commit | 01586d69fb1b7b0e8421334e47711eb80f62e274 (patch) | |
tree | f5dbd342dd6d0543b1e89d62c4a445c66f617f38 /sources/ogAdmServer.c | |
parent | 3acd4b476fc4737791f281ee7dbed3aa5bd4a565 (diff) |
#971 replace liberaMemoria() by free()
Diffstat (limited to 'sources/ogAdmServer.c')
-rw-r--r-- | sources/ogAdmServer.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sources/ogAdmServer.c b/sources/ogAdmServer.c index 216b820..0b1748a 100644 --- a/sources/ogAdmServer.c +++ b/sources/ogAdmServer.c @@ -1003,12 +1003,12 @@ bool actualizaHardware(struct og_dbi *dbi, char *hrd, char *ido, char *npc, npc, tbidhardware, lon)) { syslog(LOG_ERR, "Problem updating client hardware\n"); retval=false; - } - else { + } else { retval=true; } - liberaMemoria(whard); - liberaMemoria(idhardwares); + free(whard); + free(idhardwares); + return (retval); } // ________________________________________________________________________________________________________ @@ -1265,13 +1265,13 @@ bool actualizaSoftware(struct og_dbi *dbi, char *sft, char *par,char *ido, syslog(LOG_ERR, "cannot update software\n"); og_info((char *)msglog); retval=false; - } - else { + } else { retval=true; } - liberaMemoria(wsft); - liberaMemoria(idsoftwares); - return (retval); + free(wsft); + free(idsoftwares); + + return retval; } // ________________________________________________________________________________________________________ // FunciĆ³n: CuestionPerfilSoftware @@ -1460,8 +1460,8 @@ static TRAMA *og_msg_alloc(char *data, unsigned int len) static void og_msg_free(TRAMA *ptrTrama) { - liberaMemoria(ptrTrama->parametros); - liberaMemoria(ptrTrama); + free(ptrTrama->parametros); + free(ptrTrama); } #define OG_CLIENTS_MAX 4096 |