|
|
@ -1076,7 +1076,7 @@ void MpmHSGlobalCleanup(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SCMutexLock(&g_scratch_proto_mutex);
|
|
|
|
SCMutexLock(&g_scratch_proto_mutex);
|
|
|
|
if (g_scratch_proto) {
|
|
|
|
if (g_scratch_proto) {
|
|
|
|
SCLogPerf("Cleaning up Hyperscan global scratch");
|
|
|
|
SCLogDebug("Cleaning up Hyperscan global scratch");
|
|
|
|
hs_free_scratch(g_scratch_proto);
|
|
|
|
hs_free_scratch(g_scratch_proto);
|
|
|
|
g_scratch_proto = NULL;
|
|
|
|
g_scratch_proto = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1084,7 +1084,7 @@ void MpmHSGlobalCleanup(void)
|
|
|
|
|
|
|
|
|
|
|
|
SCMutexLock(&g_db_table_mutex);
|
|
|
|
SCMutexLock(&g_db_table_mutex);
|
|
|
|
if (g_db_table != NULL) {
|
|
|
|
if (g_db_table != NULL) {
|
|
|
|
SCLogPerf("Clearing Hyperscan database cache");
|
|
|
|
SCLogDebug("Clearing Hyperscan database cache");
|
|
|
|
HashTableFree(g_db_table);
|
|
|
|
HashTableFree(g_db_table);
|
|
|
|
g_db_table = NULL;
|
|
|
|
g_db_table = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|