graalvm / sulong

Obsolete repository. Moved to oracle/graal.
Other
628 stars 63 forks source link

Fix atexit handling in disposeContext #822

Closed pekd closed 6 years ago

pekd commented 6 years ago

Check if __sulong_funcs_on_exit is defined and only then call it. This avoids a problem if the parser itself throws an exception, because in this case there is no __sulong_funcs_on_exit and the exception about the missing function would mask the parser exception.