summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-06-28 17:38:08 +0200
committerJulian Andres Klode <jak@debian.org>2010-06-28 17:38:08 +0200
commitcec9f4f4bb39cc075acded3478d59d0f17d3ed89 (patch)
treec6cae84d5867e62d094d322e32afcbca238cd7b0
parent4213f040ac8464d8826b64746c49c21c53a1ab12 (diff)
Also free regular expressions.
-rw-r--r--apt-pkg/versionmatch.cc1
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;
}
}