summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/mem.c')
-rw-r--r--Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/mem.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/mem.c b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/mem.c
index 078bc2fa619..de5138904fd 100644
--- a/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/mem.c
+++ b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/mem.c
@@ -33,7 +33,7 @@
#include "dpxutil.h"
-#define MEM_LINE 128
+#define MEM_LINE 180
static struct ht_table *mem_ht;
static long int mem_event;
@@ -71,9 +71,10 @@ void mem_debug_check(void)
void *mem_add(void *ptr, const char *file, const char *function, int line) {
if (ptr && !mem_internal) {
+ char **p;
mem_internal = 1;
mem_str = malloc(MEM_LINE);
- char **p = malloc(sizeof(ptr));
+ p = malloc(sizeof(ptr));
*p = ptr;
snprintf(mem_str, MEM_LINE, "(0x%08lx) %s (%s, %d)"
#ifdef __GNUC__
@@ -125,7 +126,8 @@ void mem_debug_init(void)
void mem_debug_check(void)
{
if (mem_count)
- WARN("%ld memory objects still allocated\n", mem_count);
+ WARN("%ld memory objects still allocated\n"
+ "You may want to report this to tex-k@tug.org\n", mem_count);
}
void *mem_add(void *ptr) {