diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-02-25 12:34:26 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-02-25 12:34:26 +0100 |
commit | a49bcdc6d4381cb893acfd0d73938e927c87363d (patch) | |
tree | f93488f0dc174e2ec10eab0bd3e716e10dbaef9b /admin | |
parent | d0df4ec235f0a813e93a46822cd2a7622db06c9b (diff) |
#872: Completing last commit {{{d0df4ec2}}}.
Diffstat (limited to 'admin')
-rw-r--r-- | admin/Sources/Services/ogAdmAgent/sources/ogAdmAgent.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmAgent/sources/ogAdmAgent.cpp b/admin/Sources/Services/ogAdmAgent/sources/ogAdmAgent.cpp index 07a6eef3..2f0f442b 100644 --- a/admin/Sources/Services/ogAdmAgent/sources/ogAdmAgent.cpp +++ b/admin/Sources/Services/ogAdmAgent/sources/ogAdmAgent.cpp @@ -421,15 +421,18 @@ BOOLEAN ejecutarProcedimiento(Database db,int idprocedimiento,int ambito,int ida liberaMemoria(parametros); return (FALSE); } - liberaMemoria(parametros); if(!tbl.Get("idcomando",idcomando)){ tbl.GetErrorErrStr(msglog); errorInfo(modulo, msglog); return (FALSE); } - if(!insertaComando(db,idcomando,parametros,idprocedimiento,ambito,idambito,restrambito)) + if(!insertaComando(db,idcomando,parametros,idprocedimiento,ambito,idambito,restrambito)) { + + liberaMemoria(parametros); return(false); + } + liberaMemoria(parametros); } tbl.MoveNext(); } |