[Libreoffice-commits] core.git: sc/source
Julien Nabet
serval2412 at yahoo.fr
Wed Aug 7 13:09:35 PDT 2013
sc/source/core/opencl/formulagroupcl.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit d65c44020bf32713af4985f598f7b532a969247a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Aug 7 22:09:08 2013 +0200
cppcheck: fix memory leak
Change-Id: Ic52ef3bcbca4c512fcb6e422a9b4e983cccbe41a
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 9133006..915f1d9 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -262,6 +262,7 @@ bool FormulaGroupInterpreterOpenCL::interpret(ScDocument& rDoc, const ScAddress&
if( NULL==pArray )
{
fprintf(stderr,"Error: pArray is NULL!\n");
+ free(rResult);
return false;
}
if(ocl_calc.GetOpenclState())
More information about the Libreoffice-commits
mailing list