From f8949e17c86f1561ab2a9568288fb4911b4878be Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 17 Oct 2013 04:23:53 -0400 Subject: [PATCH] Cleaner traces --- stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stat.c b/stat.c index a66bf37..e46102d 100644 --- a/stat.c +++ b/stat.c @@ -299,7 +299,7 @@ char *stat_mem_strdup(const char *src, size_t line, const char *file, bool empty return NULL; len = strlen(src); - if (((!empty) ? len : true) && (ptr = (char*)stat_mem_allocate(len + 1, line, file, NULL))) { + if (((!empty) ? len : true) && (ptr = (char*)stat_mem_allocate(len + 1, line, file, "strdup"))) { memcpy(ptr, src, len); ptr[len] = '\0'; } @@ -721,7 +721,7 @@ static void stat_dump_mem_leaks(void) { for (info = stat_mem_block_root; info; info = info->next) { /* we need access to the block */ VALGRIND_MAKE_MEM_DEFINED(info, sizeof(stat_mem_block_t)); - con_out("lost: %u (bytes) at %s:%u %s\n", + con_out("lost: %u (bytes) at %s:%u from expression `%s`\n", info->size, info->file, info->line, -- 2.39.2