From: Eric Leblond Date: Fri, 4 Mar 2016 17:25:43 +0000 (+0100) Subject: util-host-info: fix memleaks X-Git-Tag: suricata-3.0.1RC1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1f2f0d4782103b8aaaed656d5185a5d77a0e161;p=thirdparty%2Fsuricata.git util-host-info: fix memleaks This fixes pcre related memory leak in SCKernelVersionIsAtLeast function. --- diff --git a/src/util-host-info.c b/src/util-host-info.c index c7ea8adf6c..2e06c636de 100644 --- a/src/util-host-info.c +++ b/src/util-host-info.c @@ -86,6 +86,8 @@ int SCKernelVersionIsAtLeast(int major, int minor) kminor = atoi(list[2]); pcre_free_substring_list(list); + pcre_free_study(version_regex_study); + pcre_free(version_regex); if (kmajor > major) return 1;