sc/source/core/opencl/formulagroupcl.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d65c44020bf32713af4985f598f7b532a969247a
Author: Julien Nabet <serval2...@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())
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to