summaryrefslogtreecommitdiff
path: root/ace/Containers_T.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Containers_T.cpp')
-rw-r--r--ace/Containers_T.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/ace/Containers_T.cpp b/ace/Containers_T.cpp
index 44ab889ab61..9bd019ab70f 100644
--- a/ace/Containers_T.cpp
+++ b/ace/Containers_T.cpp
@@ -2350,10 +2350,9 @@ ACE_Array_Base<T>::operator= (const ACE_Array_Base<T> &s)
{
if (this->max_size_ < s.size ())
{
- ACE_DES_ARRAY_FREE (this->array_,
- this->max_size_,
- this->allocator_->free,
- T);
+ ACE_DES_FREE (this->array_,
+ this->allocator_->free,
+ T);
ACE_NEW_MALLOC (this->array_,
(T *) this->allocator_->malloc (s.size () * sizeof (T)),
@@ -2417,11 +2416,10 @@ ACE_Array_Base<T>::max_size (size_t new_size)
// previously allocated section.
for (size_t j = this->cur_size_; j < new_size; j++)
new (&tmp[j]) T;
-
- ACE_DES_ARRAY_FREE (this->array_,
- this->max_size_,
- this->allocator_->free,
- T);
+
+ ACE_DES_FREE (this->array_,
+ this->allocator_->free,
+ T);
this->array_ = tmp;
this->max_size_ = new_size;