Skip to content

Commit b087efe

Browse files
committed
Add missing utils_annotate_memory_inaccessible()
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent 38d5339 commit b087efe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/base_alloc/base_alloc_global.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,15 @@ void umf_ba_global_free(void *ptr) {
231231
int ac_index = size_to_idx(total_size);
232232
if (ac_index >= NUM_ALLOCATION_CLASSES) {
233233
VALGRIND_DO_FREELIKE_BLOCK(ptr, 0);
234+
utils_annotate_memory_inaccessible(ptr, total_size);
234235
ba_os_free(ptr, total_size);
235236
return;
236237
}
237238

238239
if (!BASE_ALLOC.ac[ac_index]) {
239240
// if creating ac failed, memory must have been allocated by os
240241
VALGRIND_DO_FREELIKE_BLOCK(ptr, 0);
242+
utils_annotate_memory_inaccessible(ptr, total_size);
241243
ba_os_free(ptr, total_size);
242244
return;
243245
}

0 commit comments

Comments
 (0)