diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-26 20:53:23 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-26 20:53:23 +0000 |
commit | 0e38d0eb8ed4a862a2e4a0cd543ea7d729526888 (patch) | |
tree | f79513a4b5aa6874b26092842076c4290bb71fcb /ace/Malloc_T.cpp | |
parent | 6b02514f8332715829f82e0f49f47d5f6a59a2f8 (diff) | |
download | ATCD-0e38d0eb8ed4a862a2e4a0cd543ea7d729526888.tar.gz |
(ACE_Cached_Allocator): fixed typo, sizeof (T*) instead of sizeof (*T)
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++) |