diff options
author | alonso <alonso@us.es> | 2014-03-03 14:53:00 +0000 |
---|---|---|
committer | alonso <alonso@us.es> | 2014-03-03 14:53:00 +0000 |
commit | 1c041808389b8e77d189e08024246901696b98fb (patch) | |
tree | 694c80cef2ee17a8a69c9e0247d136fd24b81565 /sources/ogAdmServer.cpp | |
parent | fcc271fdc9d7606f5ddc9d3403e181cd8834496c (diff) |
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4172 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r-- | sources/ogAdmServer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 6473143..7e3b024 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -2570,11 +2570,15 @@ BOOLEAN RESPUESTA_EjecutarScript(SOCKET *socket_c, TRAMA* ptrTrama) } cfg = copiaParametro("cfg",ptrTrama); // Toma configuración de particiones - res=actualizaConfiguracion(db, tbl, cfg, atoi(ido)); // Actualiza la configuración del ordenador + + if(cfg){ + res=actualizaConfiguracion(db, tbl, cfg, atoi(ido)); // Actualiza la configuración del ordenador + liberaMemoria(cfg); + } liberaMemoria(iph); liberaMemoria(ido); - liberaMemoria(cfg); + db.Close(); // Cierra conexión return (TRUE); |