summaryrefslogtreecommitdiff
path: root/lib/theron_allocator.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-11-26 04:29:01 -0800
committerJosh Blum2012-11-26 04:29:01 -0800
commit267e942a0d1a63388a5ee0a112b9d16158f1b1cc (patch)
tree99915b464f13fa64db8fa0f918f63e9049aacf63 /lib/theron_allocator.cpp
parenta10cd5cedee2eb30e49980f9136d6844ceb7ace1 (diff)
downloadsandhi-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.cpp4
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);
}
}