summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-09 23:01:02 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-09 23:03:03 -0500
commite0c8d9a6fc6bc5a23873b45a1f8c9d52163e79d7 (patch)
tree442d674a8193775c1c94c95413dbccc295ecb457
parent57b5ede3616c3704c1aa9c365b9eff2277e7159c (diff)
downloadmongo-e0c8d9a6fc6bc5a23873b45a1f8c9d52163e79d7.tar.gz
don't use new[] for boost shared ptr SERVER-2504
-rw-r--r--db/commands/mr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/commands/mr.cpp b/db/commands/mr.cpp
index 5fbe2434f1e..ee2a1f38b6d 100644
--- a/db/commands/mr.cpp
+++ b/db/commands/mr.cpp
@@ -808,7 +808,7 @@ namespace mongo {
state.init();
{
- State** s = new State*[1];
+ State** s = (State**)malloc( sizeof(State*) );
s[0] = &state;
_tl.reset( s );
}