]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Free pcre study structs for classification, threshold and reference parsing.
authorVictor Julien <victor@inliniac.net>
Thu, 28 Jun 2012 10:50:08 +0000 (12:50 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 28 Jun 2012 10:50:08 +0000 (12:50 +0200)
src/util-classification-config.c
src/util-reference-config.c
src/util-threshold-config.c

index d9d5e54e3cff90d0764646bb5a9133de60121c3b..6300844c4baabda67feeb6bfbef0dc1a0192dca7 100644 (file)
@@ -128,7 +128,7 @@ int SCClassConfInitContextAndLocalResources(DetectEngineCtx *de_ctx)
         regex = NULL;
     }
     if (regex_study != NULL) {
-        //pcre_free_study(regex_study);
+        pcre_free(regex_study);
         regex_study = NULL;
     }
 
@@ -166,11 +166,11 @@ static void SCClassConfDeInitLocalResources(DetectEngineCtx *de_ctx)
     default_file_path = SC_CLASS_CONF_DEF_CONF_FILEPATH;
     fd = NULL;
     if (regex != NULL) {
-        pcre_free(regex_study);
+        pcre_free(regex);
         regex = NULL;
     }
     if (regex_study != NULL) {
-        //pcre_free_study(regex_study);
+        pcre_free(regex_study);
         regex_study = NULL;
     }
 
index 989f9b5a1aae004e348b231d7788015eac74fd52..94a8db8c994a033c2ffce7c492f8567eadd3888e 100644 (file)
@@ -129,7 +129,7 @@ static int SCRConfInitContextAndLocalResources(DetectEngineCtx *de_ctx)
         regex = NULL;
     }
     if (regex_study != NULL) {
-        //pcre_free_study(regex_study);
+        pcre_free(regex_study);
         regex_study = NULL;
     }
 
@@ -168,7 +168,7 @@ static void SCRConfDeInitLocalResources(DetectEngineCtx *de_ctx)
         regex = NULL;
     }
     if (regex_study != NULL) {
-        //pcre_free_study(regex_study);
+        pcre_free(regex_study);
         regex_study = NULL;
     }
 
index 47a4c35c7fdf0658d57ca61bc96ab4f800fa7b6b..084ea587ba49cedfb619763b9eb97cb9adb63a41 100644 (file)
@@ -216,7 +216,7 @@ void SCThresholdConfDeInitContext(DetectEngineCtx *de_ctx, FILE *fd)
         regex_base = NULL;
     }
     if (regex_base_study != NULL) {
-        //pcre_free_study(regex_base_study);
+        pcre_free(regex_base_study);
         regex_base_study = NULL;
     }
 
@@ -225,7 +225,7 @@ void SCThresholdConfDeInitContext(DetectEngineCtx *de_ctx, FILE *fd)
         regex_threshold = NULL;
     }
     if (regex_threshold_study != NULL) {
-        //pcre_free_study(regex_threshold_study);
+        pcre_free(regex_threshold_study);
         regex_threshold_study = NULL;
     }
 
@@ -234,7 +234,7 @@ void SCThresholdConfDeInitContext(DetectEngineCtx *de_ctx, FILE *fd)
         regex_rate = NULL;
     }
     if (regex_rate_study != NULL) {
-        //pcre_free_study(regex_rate_study);
+        pcre_free(regex_rate_study);
         regex_rate_study = NULL;
     }
 
@@ -243,7 +243,7 @@ void SCThresholdConfDeInitContext(DetectEngineCtx *de_ctx, FILE *fd)
         regex_suppress = NULL;
     }
     if (regex_suppress_study != NULL) {
-        //pcre_free_study(regex_suppress_study);
+        pcre_free(regex_suppress_study);
         regex_suppress_study = NULL;
     }