1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed some memory leaks

Disabled some asserts that we can't yet have enabled
This commit is contained in:
Michael Widenius
2013-06-19 22:57:46 +03:00
parent dfcc502ab5
commit f62f4bd563
12 changed files with 29 additions and 14 deletions

View File

@@ -373,8 +373,8 @@ void sf_report_leaked_memory(my_thread_id id)
{
my_thread_id tid = irem->thread_id && irem->flags & MY_THREAD_SPECIFIC ?
irem->thread_id : 0;
fprintf(stderr, "Warning: %4lu bytes lost, allocated by T@%lu at ",
(ulong) irem->datasize,tid);
fprintf(stderr, "Warning: %4lu bytes lost at %p, allocated by T@%lu at ",
(ulong) irem->datasize, (char*) (irem + 1), tid);
print_stack(irem->frame);
total+= irem->datasize;
}