Fix register_clean_up being called with ScopedAllocator. (#344)
This commit is contained in:
committed by
GitHub
parent
f0e2ab702a
commit
4b9ead8066
@@ -25,7 +25,10 @@ namespace snmalloc
|
||||
/**
|
||||
* Constructor. Claims an allocator from the global pool
|
||||
*/
|
||||
ScopedAllocator() = default;
|
||||
ScopedAllocator()
|
||||
{
|
||||
alloc.init();
|
||||
};
|
||||
|
||||
/**
|
||||
* Copying is not supported, it could easily lead to accidental sharing of
|
||||
|
||||
Reference in New Issue
Block a user