From aaa9a007ee4af6b40d2eefef15bccc51f92e17d9 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 27 Sep 2005 18:46:53 +0000 Subject: [PATCH] Otro leak fixed. --- src/btree.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/btree.cpp b/src/btree.cpp index adb0ae7..ae98139 100644 --- a/src/btree.cpp +++ b/src/btree.cpp @@ -52,7 +52,7 @@ void BTree::WriteBlock (uchar *block, uint num) void BTree::AddKey (const Clave &k) { uint left, right; - Clave *kout = AddKeyR (&k, 0, left, right); + Clave *kout = AddKeyR (k.Clone (), 0, left, right); if (kout) { unsigned short level; @@ -91,8 +91,6 @@ void BTree::AddKey (const Clave &k) delete [] node; DeleteKeys (node_keys); PrintNode (0); - - delete kout; } } -- 2.43.0