From 1821559950514727efd08044d996af8e60d22e8f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 1 Feb 2010 21:23:00 +0000 Subject: [PATCH] Deallocate config instance when necessary, to avoid memory leak when in prefetch mode. svn path=/main/trunk/; revision=15311 --- pym/_emerge/EbuildFetcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py index ba282081e..b8931df15 100644 --- a/pym/_emerge/EbuildFetcher.py +++ b/pym/_emerge/EbuildFetcher.py @@ -73,6 +73,9 @@ class EbuildFetcher(SpawnProcess): self.args = fetch_args self.env = fetch_env + if self._build_dir is None: + # Free settings now since we only have a local reference. + self.config_pool.deallocate(settings) SpawnProcess._start(self) def _pipe(self, fd_pipes): -- 2.26.2