summaryrefslogtreecommitdiff
path: root/ace/Hash_Map_Manager_T.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-29 03:00:28 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-29 03:00:28 +0000
commited8789c47b7cc6c2a3e1720d2abef19b03f7fce3 (patch)
tree0bc1d814be39b961890e074cd35f369b8ee336cf /ace/Hash_Map_Manager_T.cpp
parent8a441da2d5e984ef46676e555e394d29a42c4c25 (diff)
downloadATCD-ed8789c47b7cc6c2a3e1720d2abef19b03f7fce3.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Hash_Map_Manager_T.cpp')
-rw-r--r--ace/Hash_Map_Manager_T.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/Hash_Map_Manager_T.cpp b/ace/Hash_Map_Manager_T.cpp
index 2037b29b2a8..1921304ccb1 100644
--- a/ace/Hash_Map_Manager_T.cpp
+++ b/ace/Hash_Map_Manager_T.cpp
@@ -118,6 +118,10 @@ ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK>::open
{
ACE_WRITE_GUARD_RETURN (ACE_LOCK, ace_mon, this->lock_, -1);
+ // Calling this->close_i () to ensure we release previous allocated
+ // memory before allocating new one.
+ this->close_i ();
+
if (alloc == 0)
alloc = ACE_Allocator::instance ();
@@ -129,10 +133,6 @@ ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK>::open
// to be ACE_DEFAULT_MAP_SIZE, but instead was defined to be 0).
ACE_ASSERT (size != 0);
- // Calling this->close_i () to ensure we release previous allocated
- // memory before allocating new one.
- this->close_i ();
-
return this->create_buckets (size);
}