mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix leaks exposed by #3383
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
719c5dd911
commit
fd54408629
3 changed files with 14 additions and 0 deletions
|
@ -97,6 +97,7 @@ void small_object_allocator::deallocate(size_t size, void * p) {
|
|||
void * small_object_allocator::allocate(size_t size) {
|
||||
if (size == 0) return nullptr;
|
||||
|
||||
|
||||
#if defined(Z3DEBUG) && !defined(_WINDOWS)
|
||||
// Valgrind friendly
|
||||
return memory::allocate(size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue