static TCHAR imageargv0[PATH_LENGTH];\r
\r
void nssm_exit(int status) {\r
+ free_imports();\r
unsetup_utf8();\r
exit(status);\r
}\r
/* User probably ran nssm with no argument */\r
if (error == ERROR_FAILED_SERVICE_CONTROLLER_CONNECT) nssm_exit(usage(1));\r
log_event(EVENTLOG_ERROR_TYPE, NSSM_EVENT_DISPATCHER_FAILED, error_string(error), 0);\r
- free_imports();\r
nssm_exit(100);\r
}\r
}\r
log_event(EVENTLOG_INFORMATION_TYPE, NSSM_EVENT_EXIT_UNCLEAN, service->name, code, exit_action_strings[action], 0);\r
stop_service(service, exitcode, false, default_action);\r
wait_for_hooks(service, false);\r
- free_imports();\r
nssm_exit(exitcode);\r
}\r
}\r