Skip to content

Commit 652c7d1

Browse files
andralexMartinNowak
authored andcommitted
fix deallocateAll for InSituAllocator
1 parent c3eff0e commit 652c7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/std/allocator.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2991,7 +2991,7 @@ struct InSituRegion(size_t size, size_t minAlign = platformAlignment)
29912991
*/
29922992
void deallocateAll()
29932993
{
2994-
_crt = null;
2994+
_crt = _store.ptr;
29952995
}
29962996

29972997
/**

0 commit comments

Comments
 (0)