Skip to content
Snippets Groups Projects
Commit 82fe0a11 authored by Petr Rockai's avatar Petr Rockai
Browse files

libc: Fix an invalid __vm_obj_free() in case no atexit handlers are registered.

parent 2b6c349c
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,10 @@ int __cxa_finalize( void *dso_handle ) ...@@ -69,7 +69,10 @@ int __cxa_finalize( void *dso_handle )
entry->func = NULL; entry->func = NULL;
} }
} }
__vm_obj_free( atexit_entries );
if ( atexit_entries )
__vm_obj_free( atexit_entries );
// ToDo: Remove invalid entries? // ToDo: Remove invalid entries?
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment