summaryrefslogtreecommitdiff
path: root/include/leak_detector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/leak_detector.h')
-rw-r--r--include/leak_detector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/leak_detector.h b/include/leak_detector.h
index 6786825..0674ab4 100644
--- a/include/leak_detector.h
+++ b/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()