Kaydet (Commit) 1659af36 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: memleaks

Change-Id: I3c326d649d7bbc0ff4d663a2fd865ed95dc9b985
üst d4a41ab3
......@@ -821,7 +821,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, const ScAddress
const formula::SingleVectorRefToken* pSvr = static_cast<const formula::SingleVectorRefToken*>( p );
dpBinaryData = pSvr->GetArray().mpNumericArray;
uint nArrayLen = pSvr->GetArrayLength();
SingleVectorFormula *SignleTemp = new SingleVectorFormula() ;
SingleVectorFormula *SignleTemp = 0;
if(isSingle)
{
SignleTemp = mSingleArray[--mnSingleCount];
......@@ -942,7 +942,11 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, const ScAddress
return true;
} // getOpenclState() End
else
{
if (pResult)
free(pResult);
return false;
}
}
#if USE_GROUNDWATER_INTERPRETER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment