From: Julian Andres Klode Date: Mon, 28 Jun 2010 15:38:08 +0000 (+0200) Subject: Also free regular expressions. X-Git-Tag: 0.8.0~9^2~26 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/cec9f4f4bb39cc075acded3478d59d0f17d3ed89 Also free regular expressions. --- diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc index a269338d6..093180f9b 100644 --- a/apt-pkg/versionmatch.cc +++ b/apt-pkg/versionmatch.cc @@ -188,6 +188,7 @@ bool pkgVersionMatch::ExpressionMatches(const char *pattern, const char *string) res = true; } free(regex); + regfree(&preg); return res; } }