From: Jeff Lucovsky Date: Thu, 17 Feb 2022 16:05:22 +0000 (-0500) Subject: detect/ipproto: Add init/release functions X-Git-Tag: suricata-5.0.9~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=128e989b4d431a8fc97d6bf5a2210755b0b1a5df;p=thirdparty%2Fsuricata.git detect/ipproto: Add init/release functions Issue: 5072 This commit insures that the protocol name hashtables are initialized and released. (cherry picked from commit b52496725771c0a4bc98e1fe5c246bca77e8da03) --- diff --git a/src/suricata.c b/src/suricata.c index e4eccfd390..762d3598b7 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 @@ -349,6 +349,7 @@ void GlobalsInitPreConfig(void) TimeInit(); SupportFastPatternForSigMatchTypes(); SCThresholdConfGlobalInit(); + SCProtoNameInit(); } static void GlobalsDestroy(SCInstance *suri) @@ -381,6 +382,7 @@ static void GlobalsDestroy(SCInstance *suri) LiveDeviceListClean(); OutputDeregisterAll(); + SCProtoNameRelease(); TimeDeinit(); if (!suri->disabled_detect) { SCReferenceConfDeinit();