]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-ssl-state: fix memleak
authorEric Leblond <eric@regit.org>
Sun, 6 Mar 2016 20:40:26 +0000 (21:40 +0100)
committerEric Leblond <eric@regit.org>
Mon, 7 Mar 2016 22:29:58 +0000 (23:29 +0100)
src/detect-ssl-state.c

index fa296631acf2dade6d06ea6774a4a55299963be9..ffd6f39d68ed81b1ea578f542a016bee47113abc 100644 (file)
@@ -261,6 +261,7 @@ DetectSslStateData *DetectSslStateParse(char *arg)
         pcre_free_substring(str1);
         str1 = str2;
     }
+    pcre_free_substring(str1);
 
     if ( (ssd = SCMalloc(sizeof(DetectSslStateData))) == NULL) {
         goto error;