diff options
author | Geert Bosch <geert@mongodb.com> | 2015-09-01 13:26:03 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2015-09-01 18:29:09 -0400 |
commit | 0a6c20bdc7128d1f13e967a7cc6219b1dfc38b6b (patch) | |
tree | 8c61bb9c03a23b1d60f4d5ddbd22e1a662d51dff | |
parent | 9237325ded582696d28e54a2c702b56b6e10f4dd (diff) | |
download | mongo-0a6c20bdc7128d1f13e967a7cc6219b1dfc38b6b.tar.gz |
SERVER-20204: Use mongoMalloc to allocate memory
-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 a8fd9a27b3e..a624f6f8a7c 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 { @@ -56,7 +57,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))); } /** |