]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix a reload memleak in thread local detection engine ctx.
authorVictor Julien <victor@inliniac.net>
Mon, 2 Jul 2012 10:47:39 +0000 (12:47 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 2 Jul 2012 16:29:43 +0000 (18:29 +0200)
src/detect-engine.c

index f9a74daa9877b40105953099c8d7dd7229515be0..422a5aed6138ea66975b31856637b1dbcda81130 100644 (file)
@@ -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);