Clean up a leaking global and missing semicolon