From b52496725771c0a4bc98e1fe5c246bca77e8da03 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 17 Feb 2022 11:05:22 -0500 Subject: [PATCH] detect/ipproto: Add init/release functions Issue: 5072 This commit insures that the protocol name hashtables are initialized and released. --- src/suricata.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/suricata.c b/src/suricata.c index f0bf6ff68..84c988b83 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2021 Open Information Security Foundation +/* Copyright (C) 2007-2022 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free @@ -375,6 +375,7 @@ void GlobalsInitPreConfig(void) TimeInit(); SupportFastPatternForSigMatchTypes(); SCThresholdConfGlobalInit(); + SCProtoNameInit(); } static void GlobalsDestroy(SCInstance *suri) @@ -402,6 +403,7 @@ static void GlobalsDestroy(SCInstance *suri) LiveDeviceListClean(); OutputDeregisterAll(); FeatureTrackingRelease(); + SCProtoNameRelease(); TimeDeinit(); if (!suri->disabled_detect) { SCReferenceConfDeinit(); -- 2.47.3