We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7727ad1 + eec4f13 commit 5fefad3Copy full SHA for 5fefad3
src/provider/provider_tracking.c
@@ -1236,9 +1236,9 @@ umf_memory_tracker_handle_t umfMemoryTrackerCreate(void) {
1236
err_destroy_ipc_info_allocator:
1237
umf_ba_destroy(handle->ipc_info_allocator);
1238
err_destroy_alloc_segments_map:
1239
- for (int j = i; j >= 0; j--) {
1240
- if (handle->alloc_segments_map[j]) {
1241
- critnib_delete(handle->alloc_segments_map[j]);
+ for (i = 0; i < MAX_LEVELS_OF_ALLOC_SEGMENT_MAP; i++) {
+ if (handle->alloc_segments_map[i]) {
+ critnib_delete(handle->alloc_segments_map[i]);
1242
}
1243
1244
utils_mutex_destroy_not_free(&handle->splitMergeMutex);
0 commit comments