aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc/system_alloc/defalloc.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-26 17:38:46 +0000
committerlloyd <[email protected]>2010-09-26 17:38:46 +0000
commit03af9ab3905ee9d667677e15f3245a1eda43e77d (patch)
treec3b584d67c8a88af6e82199c80aca78debc9bae0 /src/alloc/system_alloc/defalloc.cpp
parent3181cda998fc96868efc17b9630fdd5dceff9404 (diff)
Fix, wasn't returning pointer
Diffstat (limited to 'src/alloc/system_alloc/defalloc.cpp')
-rw-r--r--src/alloc/system_alloc/defalloc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/alloc/system_alloc/defalloc.cpp b/src/alloc/system_alloc/defalloc.cpp
index 596deb3d0..3161716b9 100644
--- a/src/alloc/system_alloc/defalloc.cpp
+++ b/src/alloc/system_alloc/defalloc.cpp
@@ -57,6 +57,7 @@ void* Malloc_Allocator::allocate(u32bit n)
void* ptr = do_malloc(n, false);
if(!ptr)
throw Memory_Exhaustion();
+ return ptr;
}
/*