From: Victor Julien Date: Mon, 2 Jul 2012 10:47:39 +0000 (+0200) Subject: Fix a reload memleak in thread local detection engine ctx. X-Git-Tag: suricata-1.3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7af0589bc923e1b20f51920c3e37143cb61ddd6;p=thirdparty%2Fsuricata.git Fix a reload memleak in thread local detection engine ctx. --- diff --git a/src/detect-engine.c b/src/detect-engine.c index f9a74daa98..422a5aed61 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -856,6 +856,8 @@ TmEcode DetectEngineThreadCtxDeinit(ThreadVars *tv, void *data) { if (det_ctx->de_state_sig_array != NULL) SCFree(det_ctx->de_state_sig_array); + if (det_ctx->match_array != NULL) + SCFree(det_ctx->match_array); if (det_ctx->bj_values != NULL) SCFree(det_ctx->bj_values);