From 83a8f6e03ab3bf945bd8f21b80f3dfa1db7c2457 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Fri, 22 Jun 2012 18:42:35 +0530 Subject: [PATCH] cleanup threshold config de-init --- src/util-threshold-config.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/util-threshold-config.c b/src/util-threshold-config.c index 6eb4c0501c..a5add030fc 100644 --- a/src/util-threshold-config.c +++ b/src/util-threshold-config.c @@ -208,8 +208,21 @@ error: void SCThresholdConfDeInitContext(DetectEngineCtx *de_ctx, FILE *fd) { - if(fd != NULL) + if (fd != NULL) fclose(fd); + + regex_base = NULL; + regex_base_study = NULL; + + regex_threshold = NULL; + regex_threshold_study = NULL; + + regex_rate = NULL; + regex_rate_study = NULL; + + regex_suppress = NULL; + regex_suppress_study = NULL; + return; }