From 24f18983923cc63706e3c5c8a5db6bb073e7afb7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 9 Jul 2018 22:05:53 +0300 Subject: Fix memory leak due to complement repository cycles --- bpkg/package.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/package.cxx') diff --git a/bpkg/package.cxx b/bpkg/package.cxx index dea16f2..66e9ba1 100644 --- a/bpkg/package.cxx +++ b/bpkg/package.cxx @@ -88,7 +88,7 @@ namespace bpkg return i.fragment == lrf; }; - for (const lazy_shared_ptr& r: cs) + for (const lazy_weak_ptr& r: cs) { const auto& frs (r.load ()->fragments); @@ -110,7 +110,7 @@ namespace bpkg // Finally, load the complements and prerequisites and check them // recursively. // - for (const lazy_shared_ptr& cr: cs) + for (const lazy_weak_ptr& cr: cs) { for (const auto& fr: cr.load ()->fragments) { -- cgit v1.1