From f1f2f0d4782103b8aaaed656d5185a5d77a0e161 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 4 Mar 2016 18:25:43 +0100 Subject: [PATCH] util-host-info: fix memleaks This fixes pcre related memory leak in SCKernelVersionIsAtLeast function. --- src/util-host-info.c | 2 ++ 1 file changed, 2 insertions(+) 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;