diff options
author | lloyd <[email protected]> | 2010-01-07 23:40:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-01-07 23:40:24 +0000 |
commit | 9900914a225c97aca575df268f73f7c6c366e697 (patch) | |
tree | 4f5525cc27e8473379f4965bb9b1dd7e1df109a3 /src/alloc | |
parent | 667738924ba1fde5bf219d963b433594d53d63b9 (diff) | |
parent | 2837e915d82e439730624f15bfc8c820475c9d65 (diff) |
merge of 'bf0e5684d8ba5fb0a21cdcd11d26995cbb250c4a'
and 'e30a741f6014987e9683842ede22c44b2db03c56'
Diffstat (limited to 'src/alloc')
-rw-r--r-- | src/alloc/mem_pool/mem_pool.cpp | 13 | ||||
-rw-r--r-- | src/alloc/system_alloc/defalloc.cpp | 2 |
2 files changed, 1 insertions, 14 deletions
diff --git a/src/alloc/mem_pool/mem_pool.cpp b/src/alloc/mem_pool/mem_pool.cpp index 2945a4cef..4180d2602 100644 --- a/src/alloc/mem_pool/mem_pool.cpp +++ b/src/alloc/mem_pool/mem_pool.cpp @@ -15,19 +15,6 @@ namespace Botan { -namespace { - -/* -* Memory Allocation Exception -*/ -struct Memory_Exhaustion : public std::bad_alloc - { - const char* what() const throw() - { return "Ran out of memory, allocation failed"; } - }; - -} - /* * Memory_Block Constructor */ diff --git a/src/alloc/system_alloc/defalloc.cpp b/src/alloc/system_alloc/defalloc.cpp index faaeb3c58..311057462 100644 --- a/src/alloc/system_alloc/defalloc.cpp +++ b/src/alloc/system_alloc/defalloc.cpp @@ -94,7 +94,7 @@ Allocator* Allocator::get(bool locking) if(alloc) return alloc; - throw Exception("Couldn't find an allocator to use in get_allocator"); + throw Internal_Error("Couldn't find an allocator to use in get_allocator"); } } |