diff options
author | Julian Andres Klode <jak@debian.org> | 2010-06-28 17:38:08 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2010-06-28 17:38:08 +0200 |
commit | cec9f4f4bb39cc075acded3478d59d0f17d3ed89 (patch) | |
tree | c6cae84d5867e62d094d322e32afcbca238cd7b0 /apt-pkg/versionmatch.cc | |
parent | 4213f040ac8464d8826b64746c49c21c53a1ab12 (diff) |
Also free regular expressions.
Diffstat (limited to 'apt-pkg/versionmatch.cc')
-rw-r--r-- | apt-pkg/versionmatch.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |