From b8be5bfb88d30c526fb9850247779d0b60a48801 Mon Sep 17 00:00:00 2001 From: kishoramballi Date: Fri, 2 May 2008 11:45:59 +0000 Subject: [PATCH] HashIndexInitInfo *idxInfo = new HashIndexInitInfo(); created memory leak. plugged using 'delete idxInfo;' after index creation. --- test/system/lock/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/test/system/lock/common.h b/test/system/lock/common.h index b994045b..803fe1d6 100644 --- a/test/system/lock/common.h +++ b/test/system/lock/common.h @@ -10,6 +10,7 @@ DbRetVal createIndex(DatabaseManager *dbMgr, char *tblname, char *fldname, char DbRetVal rv = dbMgr->createIndex(indname, idxInfo); if (rv != OK) { printf("Index creation failed\n"); return rv; } printf("Index created for %s\n", fldname); + delete idxInfo; return OK; } DbRetVal createTable(DatabaseManager *dbMgr, char *tblname) -- 2.11.4.GIT