From: Philippe Antoine Date: Wed, 3 Jul 2019 09:34:26 +0000 (+0200) Subject: leak: Fixes leak in AppLayerProtoDetectPMRegisterPattern X-Git-Tag: suricata-5.0.0-rc1~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4001%2Fhead;p=thirdparty%2Fsuricata.git leak: Fixes leak in AppLayerProtoDetectPMRegisterPattern Fixes #3070 --- diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index d8ae206713..6e3440bd42 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -1478,6 +1478,7 @@ static int AppLayerProtoDetectPMRegisterPattern(uint8_t ipproto, AppProto alprot goto end; error: + DetectContentFree(cd); ret = -1; end: SCReturnInt(ret);