]> git.saurik.com Git - apt.git/commitdiff
Also free regular expressions.
authorJulian Andres Klode <jak@debian.org>
Mon, 28 Jun 2010 15:38:08 +0000 (17:38 +0200)
committerJulian Andres Klode <jak@debian.org>
Mon, 28 Jun 2010 15:38:08 +0000 (17:38 +0200)
apt-pkg/versionmatch.cc

index a269338d6c86e116f4a8b9510bd0f18a78b5bbe4..093180f9b78e2f9d9397eed1e39b3e191fa52626 100644 (file)
@@ -188,6 +188,7 @@ bool pkgVersionMatch::ExpressionMatches(const char *pattern, const char *string)
            res = true;
         }
         free(regex);
+        regfree(&preg);
         return res;
       }
    }