diff options
author | Eliot Horowitz <eliot@10gen.com> | 2008-07-17 09:26:42 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2008-07-17 09:26:42 -0400 |
commit | d195086cb879b0251d2203ea75d0250a8a878024 (patch) | |
tree | fe0bcbca4b29c47b7bb5c7a073560509b9ffb567 /grid | |
parent | b9410e381fa4accda1b3a763926f0b573b94fa8f (diff) | |
download | mongo-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.cpp | 2 |
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 ){ |