summaryrefslogtreecommitdiff
path: root/ace/Malloc_T.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-07-26 18:43:33 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-07-26 18:43:33 +0000
commitd7dcf652235387b069e6cf766e52d5171ec33822 (patch)
tree06013960e2e9d5697dbe97e9c74fc6ba65999d8e /ace/Malloc_T.cpp
parent36f6e6a10055893d7cbb315604cc9998048e964b (diff)
downloadATCD-d7dcf652235387b069e6cf766e52d5171ec33822.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Malloc_T.cpp')
-rw-r--r--ace/Malloc_T.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/Malloc_T.cpp b/ace/Malloc_T.cpp
index 01061f66378..2083bce793d 100644
--- a/ace/Malloc_T.cpp
+++ b/ace/Malloc_T.cpp
@@ -16,19 +16,19 @@ ACE_Cached_Allocator<T, LOCK>::ACE_Cached_Allocator (size_t n_chunks)
: pool_ (0),
free_list_ (ACE_PURE_FREE_LIST)
{
- this->pool_ = (T *) new char[ n_chunks * sizeof (T[1])];
+ this->pool_ = (T *) new char[n_chunks * sizeof (*T)];
// ERRNO could be lost because this is within ctor
for (size_t c = 0 ; c < n_chunks ; c++)
this->free_list_.add (new (&this->pool_ [c]) ACE_Cached_Mem_Pool_Node<T>);
- // put into free list using placement contructor, no real memory
- // allocation in the above new
+ // Put into free list using placement contructor, no real memory
+ // allocation in the above new.
}
template <class T, class LOCK>
ACE_Cached_Allocator<T, LOCK>::~ACE_Cached_Allocator (void)
{
- delete[] this->pool_;
+ delete [] this->pool_;
}
ACE_ALLOC_HOOK_DEFINE(ACE_Malloc)