summaryrefslogtreecommitdiffstats
path: root/libc/bionic/libc_init_dynamic.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/libc_init_dynamic.c')
-rw-r--r--libc/bionic/libc_init_dynamic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/bionic/libc_init_dynamic.c b/libc/bionic/libc_init_dynamic.c
index b8e1078..b479b27 100644
--- a/libc/bionic/libc_init_dynamic.c
+++ b/libc/bionic/libc_init_dynamic.c
@@ -77,6 +77,13 @@ void __libc_prenit(void)
tls_area[TLS_SLOT_BIONIC_PREINIT] = NULL;
__libc_init_common(elfdata);
+
+#ifdef MALLOC_LEAK_CHECK
+ /* setup malloc leak checker, requires system properties */
+ extern void malloc_debug_init(void);
+ malloc_debug_init();
+#endif
+
}
__noreturn void __libc_init(uintptr_t *elfdata,