aboutsummaryrefslogtreecommitdiffstats
path: root/gc/include/leak_detector.h
diff options
context:
space:
mode:
Diffstat (limited to 'gc/include/leak_detector.h')
-rw-r--r--gc/include/leak_detector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc/include/leak_detector.h b/gc/include/leak_detector.h
index 6786825..0674ab4 100644
--- a/gc/include/leak_detector.h
+++ b/gc/include/leak_detector.h
@@ -1,7 +1,7 @@
#define GC_DEBUG
#include "gc.h"
#define malloc(n) GC_MALLOC(n)
-#define calloc(m,n) GC_MALLOC(m*n)
+#define calloc(m,n) GC_MALLOC((m)*(n))
#define free(p) GC_FREE(p)
-#define realloc(p,n) GC_REALLOC(n)
+#define realloc(p,n) GC_REALLOC((p),(n))
#define CHECK_LEAKS() GC_gcollect()