From: Eric Leblond Date: Sun, 6 Mar 2016 20:40:26 +0000 (+0100) Subject: detect-ssl-state: fix memleak X-Git-Tag: suricata-3.0.1RC1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7e18dc89922e0e669529673efa9df75e8e1af7;p=thirdparty%2Fsuricata.git detect-ssl-state: fix memleak --- diff --git a/src/detect-ssl-state.c b/src/detect-ssl-state.c index fa296631ac..ffd6f39d68 100644 --- a/src/detect-ssl-state.c +++ b/src/detect-ssl-state.c @@ -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;