nsbcompile2: Fix memory leak