add init calls to malloc_enable/malloc_disable
This commit is contained in:
parent
173ed53539
commit
6a408ad017
2
malloc.c
2
malloc.c
@ -1329,10 +1329,12 @@ COLD EXPORT int h_iterate(UNUSED uintptr_t base, UNUSED size_t size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
COLD EXPORT void h_malloc_disable(void) {
|
COLD EXPORT void h_malloc_disable(void) {
|
||||||
|
init();
|
||||||
full_lock();
|
full_lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
COLD EXPORT void h_malloc_enable(void) {
|
COLD EXPORT void h_malloc_enable(void) {
|
||||||
|
init();
|
||||||
full_unlock();
|
full_unlock();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user