From: Victor Julien Date: Thu, 21 Mar 2019 11:06:07 +0000 (+0100) Subject: app-layer/pd: free memory X-Git-Tag: suricata-5.0.0-beta1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9b27ab89a2b6174b6c7279d0bd5724a4f04531;p=thirdparty%2Fsuricata.git app-layer/pd: free memory --- diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index 7e951cf854..d15fa5eb50 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -1661,6 +1661,8 @@ int AppLayerProtoDetectDeSetup(void) sig = pm_ctx->map[id]; AppLayerProtoDetectPMFreeSignature(sig); } + SCFree(pm_ctx->map); + pm_ctx->map = NULL; } }