File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
[foundation]
2
- temporary_memory = 1M
2
+ temporary_memory = 0
3
3
daemon = false
4
4
memory_tracker = local
Original file line number Diff line number Diff line change @@ -88,9 +88,10 @@ _atomic_allocate_initialize(size_t storagesize) {
88
88
89
89
static void
90
90
_atomic_allocate_finalize (void ) {
91
- if (_memory_temporary .storage )
92
- memory_deallocate (_memory_temporary .storage );
91
+ void * storage = _memory_temporary .storage ;
93
92
memset (& _memory_temporary , 0 , sizeof (_memory_temporary ));
93
+ if (storage )
94
+ memory_deallocate (storage );
94
95
}
95
96
96
97
static void *
@@ -179,7 +180,6 @@ _memory_preallocate(void) {
179
180
void
180
181
_memory_finalize (void ) {
181
182
memory_set_tracker (_memory_no_tracker );
182
-
183
183
_atomic_allocate_finalize ();
184
184
_memory_system .finalize ();
185
185
}
You can’t perform that action at this time.
0 commit comments