summaryrefslogtreecommitdiff
path: root/grid
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2008-07-17 09:26:42 -0400
committerEliot Horowitz <eliot@10gen.com>2008-07-17 09:26:42 -0400
commitd195086cb879b0251d2203ea75d0250a8a878024 (patch)
treefe0bcbca4b29c47b7bb5c7a073560509b9ffb567 /grid
parentb9410e381fa4accda1b3a763926f0b573b94fa8f (diff)
downloadmongo-d195086cb879b0251d2203ea75d0250a8a878024.tar.gz
safemalloc
slight perf. hit we can always just do #define safemalloc malloc someone should look at realloc,calloc, etc...
Diffstat (limited to 'grid')
-rw-r--r--grid/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/grid/message.cpp b/grid/message.cpp
index d099ded693e..b537abd045a 100644
--- a/grid/message.cpp
+++ b/grid/message.cpp
@@ -138,7 +138,7 @@ bool MessagingPort::recv(Message& m) {
}
int z = (len+1023)&0xfffffc00; assert(z>=len);
- MsgData *md = (MsgData *) malloc(z);
+ MsgData *md = (MsgData *) safemalloc(z);
md->len = len;
if ( len <= 0 ){