Fix a space leak in the native code gen (again)