summaryrefslogtreecommitdiff
path: root/ndb/test/src
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-12-13 08:56:53 +0100
committerunknown <joreland@mysql.com>2004-12-13 08:56:53 +0100
commita59a6361e8521458f2a9b5867681ce1a86af468b (patch)
tree57e6890a6fd987a65945db0a20735f0d94098b05 /ndb/test/src
parent286387d3a15724bc124ec127204198b52332347f (diff)
downloadmariadb-git-a59a6361e8521458f2a9b5867681ce1a86af468b.tar.gz
ndb - Fix memory leak in HugoLoad
ndb/test/src/HugoTransactions.cpp: Fix memory leak in HugoLoad
Diffstat (limited to 'ndb/test/src')
-rw-r--r--ndb/test/src/HugoTransactions.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ndb/test/src/HugoTransactions.cpp b/ndb/test/src/HugoTransactions.cpp
index 096f5406bbf..ef5db6d9065 100644
--- a/ndb/test/src/HugoTransactions.cpp
+++ b/ndb/test/src/HugoTransactions.cpp
@@ -865,7 +865,7 @@ HugoTransactions::loadTable(Ndb* pNdb,
g_info << "|- Inserting records..." << endl;
for (int c=0 ; c<records ; ){
- bool closeTrans;
+ bool closeTrans = true;
if (retryAttempt >= retryMax){
g_info << "Record " << c << " could not be inserted, has retried "
<< retryAttempt << " times " << endl;
@@ -983,6 +983,9 @@ HugoTransactions::loadTable(Ndb* pNdb,
c = c+batch;
retryAttempt = 0;
}
+
+ if(pTrans)
+ pNdb->closeTransaction(pTrans);
return NDBT_OK;
}