diff options
author | Geert Bosch <geert@mongodb.com> | 2015-09-01 13:26:03 -0400 |
---|---|---|
committer | Ramon Fernandez <ramon.fernandez@mongodb.com> | 2015-09-02 10:48:56 -0400 |
commit | 6fef26b65a64096fcfd0a287e5420fc58ced9865 (patch) | |
tree | e0d59e43c9265235528b7727dab32fd7fde438c0 /src/mongo | |
parent | 8b09ad789b4f156141441b4823aae48fb0eb8de7 (diff) | |
download | mongo-6fef26b65a64096fcfd0a287e5420fc58ced9865.tar.gz |
SERVER-20204: Use mongoMalloc to allocate memory
(cherry picked from commit 0a6c20bdc7128d1f13e967a7cc6219b1dfc38b6b)
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/util/shared_buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/shared_buffer.h b/src/mongo/util/shared_buffer.h index 8fb1998a812..80c7459a7e3 100644 --- a/src/mongo/util/shared_buffer.h +++ b/src/mongo/util/shared_buffer.h @@ -31,6 +31,7 @@ #include <boost/intrusive_ptr.hpp> #include "mongo/platform/atomic_word.h" +#include "mongo/util/allocator.h" namespace mongo { @@ -52,7 +53,7 @@ public: } static SharedBuffer allocate(size_t bytes) { - return takeOwnership(static_cast<char*>(malloc(sizeof(Holder) + bytes))); + return takeOwnership(static_cast<char*>(mongoMalloc(sizeof(Holder) + bytes))); } /** |