ndb - fix memleak (due to incorrect merge of bug#21941)

recommit into release-clone


storage/ndb/src/ndbapi/NdbScanOperation.cpp:
  fix missing "if" statement
This commit is contained in:
unknown 2006-10-13 10:11:18 +02:00
parent 0e4fe05516
commit f64849855b

View file

@ -701,7 +701,7 @@ void NdbScanOperation::close(bool forceSend, bool releaseOp)
theNdbCon = NULL;
m_transConnection = NULL;
if (tTransCon)
if (tTransCon && releaseOp)
{
NdbIndexScanOperation* tOp = (NdbIndexScanOperation*)this;
@ -716,7 +716,7 @@ void NdbScanOperation::close(bool forceSend, bool releaseOp)
&tTransCon->m_theLastScanOperation,
tOp);
}
else if (releaseOp)
else
{
ret = tTransCon->releaseScanOperation(&tTransCon->m_firstExecutedScanOp,
0, tOp);