]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debmetaindex.cc
fix memory leaks reported by -fsanitize
[apt.git] / apt-pkg / deb / debmetaindex.cc
index 026af077fbb4f48686b7145cf2592a17b6342bbb..5a517b290d02b1ec9abf51ac83887429be1fe998 100644 (file)
@@ -270,7 +270,7 @@ bool debReleaseIndex::GetIndexes(pkgAcquire *Owner, bool const &GetAll) const
    // special case for --print-uris
    std::vector<IndexTarget> const targets = GetIndexTargets();
 #define APT_TARGET(X) IndexTarget("", X, MetaIndexInfo(X), MetaIndexURI(X), false, std::map<std::string,std::string>())
-   pkgAcqMetaBase * const TransactionManager = new pkgAcqMetaClearSig(Owner,
+   pkgAcqMetaClearSig * const TransactionManager = new pkgAcqMetaClearSig(Owner,
         APT_TARGET("InRelease"), APT_TARGET("Release"), APT_TARGET("Release.gpg"),
         targets, iR);
 #undef APT_TARGET