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) {
195195
196196 int ac_index = size_to_idx (total_size );
197197 if (ac_index >= NUM_ALLOCATION_CLASSES ) {
198- utils_annotate_memory_inaccessible (ptr , total_size );
199198 ba_os_free (ptr , total_size );
200199 return ;
201200 }
202201
203202 if (!BASE_ALLOC .ac [ac_index ]) {
204203 // if creating ac failed, memory must have been allocated by os
205- utils_annotate_memory_inaccessible (ptr , total_size );
206204 ba_os_free (ptr , total_size );
207205 return ;
208206 }
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ void *ba_os_alloc(size_t size) {
2929}
3030
3131void ba_os_free (void * ptr , size_t size ) {
32+ utils_annotate_memory_inaccessible (ptr , size );
3233 int ret = munmap (ptr , size );
3334 assert (ret == 0 );
3435 (void )ret ; // unused
You can’t perform that action at this time.
0 commit comments