We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48cc116 + f45ac8d commit bdf2daeCopy full SHA for bdf2dae
src/rt/memory_region.cpp
@@ -130,8 +130,10 @@ memory_region::~memory_region() {
130
if (_detailed_leaks) {
131
for (size_t i = 0; i < _allocation_list.size(); i++) {
132
if (_allocation_list[i] != NULL) {
133
- printf("allocation 0x%" PRIxPTR " was not freed\n",
134
- (uintptr_t) _allocation_list[i]);
+ alloc_header *header = (alloc_header*)_allocation_list[i];
+ printf("allocation (%s) 0x%" PRIxPTR " was not freed\n",
135
+ header->tag,
136
+ (uintptr_t) &header->data);
137
}
138
139
0 commit comments