瀏覽代碼

Also free regular expressions.

Julian Andres Klode 16 年之前
父節點
當前提交
cec9f4f4bb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      apt-pkg/versionmatch.cc

+ 1 - 0
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;
       }
    }