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 | 8f1983e9a1591b2a61a1737068ca0adae63f798d (patch) | |
tree | 696f4c7f4a77dad802f9cf2e253c6f961738728c /admin | |
parent | 80f62f2f849f68f7475e2865164bd824f2960e79 (diff) |
#971 replace liberaMemoria() by free()
Diffstat (limited to 'admin')
-rw-r--r-- | admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c index 216b8203..0b1748a5 100644 --- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c +++ b/admin/Sources/Services/ogAdmServer/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 |