From: Philippe Antoine Date: Tue, 8 Sep 2020 11:33:34 +0000 (+0200) Subject: signature: frees transform options in SigMatchPrepare X-Git-Tag: suricata-6.0.0-rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9788b2ec8d487942f6d4b4054e44645f4c7f9263;p=thirdparty%2Fsuricata.git signature: frees transform options in SigMatchPrepare --- diff --git a/src/detect-engine-build.c b/src/detect-engine-build.c index 099e358351..026d34f7f2 100644 --- a/src/detect-engine-build.c +++ b/src/detect-engine-build.c @@ -1858,6 +1858,12 @@ static int SigMatchPrepare(DetectEngineCtx *de_ctx) } SCFree(s->init_data->smlists); SCFree(s->init_data->smlists_tail); + for (i = 0; i < (uint32_t)s->init_data->transforms.cnt; i++) { + if (s->init_data->transforms.transforms[i].options) { + SCFree(s->init_data->transforms.transforms[i].options); + s->init_data->transforms.transforms[i].options = NULL; + } + } SCFree(s->init_data); s->init_data = NULL; }