diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-07 22:09:08 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-07 22:09:08 +0200 |
commit | d65c44020bf32713af4985f598f7b532a969247a (patch) | |
tree | 66ee6e7411f356c97d30ebee6dc988a94b6c754c | |
parent | 39a78087890fb9255a5e47220bac6cfb956fcfe0 (diff) |
cppcheck: fix memory leak
Change-Id: Ic52ef3bcbca4c512fcb6e422a9b4e983cccbe41a
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 913300622d67..915f1d930187 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()) |