summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/util/shared_buffer.h3
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)));
}
/**