output: deinit last so logging can happen until the end

pull/9381/head
Victor Julien 2 years ago
parent b130234b26
commit e5e58d5647

@ -408,7 +408,6 @@ static void GlobalsDestroy(SCInstance *suri)
#ifdef HAVE_LUAJIT #ifdef HAVE_LUAJIT
LuajitFreeStatesPool(); LuajitFreeStatesPool();
#endif #endif
SCLogDeInitLogModule();
DetectParseFreeRegexes(); DetectParseFreeRegexes();
SCThresholdConfGlobalFree(); SCThresholdConfGlobalFree();
@ -417,6 +416,7 @@ static void GlobalsDestroy(SCInstance *suri)
suri->pid_filename = NULL; suri->pid_filename = NULL;
VarNameStoreDestroy(); VarNameStoreDestroy();
SCLogDeInitLogModule();
} }
/** /**

Loading…
Cancel
Save