diff options
Diffstat (limited to 'ace/Malloc_T.cpp')
-rw-r--r-- | ace/Malloc_T.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/Malloc_T.cpp b/ace/Malloc_T.cpp index 2083bce793d..c202c3f9ae1 100644 --- a/ace/Malloc_T.cpp +++ b/ace/Malloc_T.cpp @@ -16,7 +16,7 @@ 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)]; + 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++) |