micropython/micropython — pull request #860 by Vogtinator (2014-09-14 11:07:43+00:00)
Title: Fix memory leak in unix/main.c

To exit cleanly if sys.exit has been used, a global flag should_exit_g indicates that main() should return with exit_val_g.