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 a269338..093180f 100644 (file)
@@ -188,6 +188,7 @@ bool pkgVersionMatch::ExpressionMatches(const char *pattern, const char *string)
            res = true;
         }
         free(regex);
+        regfree(&preg);
         return res;
       }
    }