diff options
author | unknown <joreland@mysql.com> | 2005-06-10 15:13:44 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-06-10 15:13:44 +0200 |
commit | 05b341943a37918fd5448bcb2e924982e7f1b5f0 (patch) | |
tree | 7bf5c54f87263d73fd0acbc7c59513df59fa60d0 /ndb/test | |
parent | bb9268b80395f1b8d701ecbe715edf054e4ceebe (diff) | |
download | mariadb-git-05b341943a37918fd5448bcb2e924982e7f1b5f0.tar.gz |
ndb -
Fix mem leak in testBlobs
ndb/test/ndbapi/testBlobs.cpp:
Fix mem leak in testBlobs
Diffstat (limited to 'ndb/test')
-rw-r--r-- | ndb/test/ndbapi/testBlobs.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ndb/test/ndbapi/testBlobs.cpp b/ndb/test/ndbapi/testBlobs.cpp index 7b30777456f..a4e7a53a5d1 100644 --- a/ndb/test/ndbapi/testBlobs.cpp +++ b/ndb/test/ndbapi/testBlobs.cpp @@ -1547,11 +1547,11 @@ testperf() } if (n != 0) { CHK(g_con->execute(Commit) == 0); + g_ndb->closeTransaction(g_con); g_con = 0; n = 0; } g_bh1 = 0; g_opr = 0; - g_con = 0; } // pk read char (one trans) { @@ -1575,7 +1575,7 @@ testperf() t1.off(g_opt.m_rowsperf); DBG(t1.time()); g_opr = 0; - g_con = 0; + g_ndb->closeTransaction(g_con); g_con = 0; } // pk read text (one trans) { @@ -1600,7 +1600,7 @@ testperf() CHK(g_con->execute(Commit) == 0); t2.off(g_opt.m_rowsperf); DBG(t2.time()); - g_opr = 0; + g_ndb->closeTransaction(g_con); g_opr = 0; g_con = 0; } // pk read overhead @@ -1634,7 +1634,7 @@ testperf() CHK(n == g_opt.m_rowsperf); t1.off(g_opt.m_rowsperf); DBG(t1.time()); - g_ops = 0; + g_ndb->closeTransaction(g_con); g_ops = 0; g_con = 0; } // scan read text @@ -1668,7 +1668,7 @@ testperf() DBG(t2.time()); g_bh1 = 0; g_ops = 0; - g_con = 0; + g_ndb->closeTransaction(g_con); g_con = 0; } // scan read overhead DBG("scan read overhead: " << t2.over(t1)); |