diff options
author | Josh Blum | 2012-11-26 04:29:01 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-26 04:29:01 -0800 |
commit | 267e942a0d1a63388a5ee0a112b9d16158f1b1cc (patch) | |
tree | 99915b464f13fa64db8fa0f918f63e9049aacf63 /lib/theron_allocator.cpp | |
parent | a10cd5cedee2eb30e49980f9136d6844ceb7ace1 (diff) | |
download | sandhi-267e942a0d1a63388a5ee0a112b9d16158f1b1cc.tar.gz sandhi-267e942a0d1a63388a5ee0a112b9d16158f1b1cc.tar.bz2 sandhi-267e942a0d1a63388a5ee0a112b9d16158f1b1cc.zip |
theron message allocator, matching malloc/free
Diffstat (limited to 'lib/theron_allocator.cpp')
-rw-r--r-- | lib/theron_allocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/theron_allocator.cpp b/lib/theron_allocator.cpp index 70281ab..1054ee9 100644 --- a/lib/theron_allocator.cpp +++ b/lib/theron_allocator.cpp @@ -57,7 +57,7 @@ static struct WorkerAllocator : Theron::IAllocator else { //std::cout << "malloc size " << size << std::endl; - return new char[size]; + return std::malloc(size); } } @@ -72,7 +72,7 @@ static struct WorkerAllocator : Theron::IAllocator } else { - delete [] ((char *)memory); + std::free(memory); } } |