Skip to content

Commit ce23ec3

Browse files
committed
Disable registration of __libc_fini_array in the init process.
With this call, destructors are not registered for execution atexit.
1 parent b67d863 commit ce23ec3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,6 @@ void pre_main(void) {
798798
singleton_mutex_id = osMutexCreate(osMutex(singleton_mutex));
799799
malloc_mutex_id = osMutexCreate(osMutex(malloc_mutex));
800800
env_mutex_id = osMutexCreate(osMutex(env_mutex));
801-
atexit(__libc_fini_array);
802801
__libc_init_array();
803802
main(0, NULL);
804803
}

0 commit comments

Comments
 (0)