Memory: add hex dump for unfreed blocks in u_report_unfreed_blocks

This commit is contained in:
Evgeny committed 2026-04-21 01:54:20 +03:00
1 parent d572b51eb0
commit 4855768884
1 file changed
+2
+2
View File
@@ -226,6 +226,8 @@ void u_report_unfreed_blocks(void) {
void* user_ptr = prefix_start + BOUNDARY_CHECK_SIZE + 8;
u_check(user_ptr, "unfreed_check", "u_report_unfreed_blocks");
printf(" - Allocated at: %s, size: %u bytes\n", alloc_loc, size);
printf(" Full memory dump at %p:\n", user_ptr);
hex_dump(user_ptr, size);
curr = *(void**)((uint8_t*)curr + NEXT_OFFSET);
}
}