summaryrefslogtreecommitdiff
path: root/mysys/safemalloc.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-06-19 22:57:46 +0300
committerMichael Widenius <monty@askmonty.org>2013-06-19 22:57:46 +0300
commitf62f4bd563a96ddd78b78d563e4d4cf5ad27aae1 (patch)
tree17d34be40ccafdbb0ffee956c87aa86bf3aef3fc /mysys/safemalloc.c
parentdfcc502ab540b4d93fe3d40d0bac15fa3ae449dd (diff)
downloadmariadb-git-f62f4bd563a96ddd78b78d563e4d4cf5ad27aae1.tar.gz
Fixed some memory leaks
Disabled some asserts that we can't yet have enabled
Diffstat (limited to 'mysys/safemalloc.c')
-rw-r--r--mysys/safemalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/safemalloc.c b/mysys/safemalloc.c
index bdcfe4480db..f1fc9366c2f 100644
--- a/mysys/safemalloc.c
+++ b/mysys/safemalloc.c
@@ -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;
}