Commit f6484985 authored by unknown's avatar unknown
Browse files

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

  recommit into release-clone


storage/ndb/src/ndbapi/NdbScanOperation.cpp:
  fix missing "if" statement
parent 0e4fe055
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);