From a49bcdc6d4381cb893acfd0d73938e927c87363d Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Mon, 25 Feb 2019 12:34:26 +0100 Subject: #872: Completing last commit {{{d0df4ec2}}}. --- admin/Sources/Services/ogAdmAgent/sources/ogAdmAgent.cpp | 7 +++++-- 1 file 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(); } -- cgit v1.2.3-18-g5258