File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -195,14 +195,12 @@ void umf_ba_global_free(void *ptr) {
195
195
196
196
int ac_index = size_to_idx (total_size );
197
197
if (ac_index >= NUM_ALLOCATION_CLASSES ) {
198
- utils_annotate_memory_inaccessible (ptr , total_size );
199
198
ba_os_free (ptr , total_size );
200
199
return ;
201
200
}
202
201
203
202
if (!BASE_ALLOC .ac [ac_index ]) {
204
203
// if creating ac failed, memory must have been allocated by os
205
- utils_annotate_memory_inaccessible (ptr , total_size );
206
204
ba_os_free (ptr , total_size );
207
205
return ;
208
206
}
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ void *ba_os_alloc(size_t size) {
29
29
}
30
30
31
31
void ba_os_free (void * ptr , size_t size ) {
32
+ utils_annotate_memory_inaccessible (ptr , size );
32
33
int ret = munmap (ptr , size );
33
34
assert (ret == 0 );
34
35
(void )ret ; // unused
You can’t perform that action at this time.
0 commit comments