summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-01 21:23:00 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-01 21:23:00 +0000
commit1821559950514727efd08044d996af8e60d22e8f (patch)
treed045c04e6ba1a3f1bb8ccb0cc4bfc4c8aee7bb81
parent3ca019fd65efcbc7f8de50630782429b29cf7a63 (diff)
downloadportage-1821559950514727efd08044d996af8e60d22e8f.tar.gz
portage-1821559950514727efd08044d996af8e60d22e8f.tar.bz2
portage-1821559950514727efd08044d996af8e60d22e8f.zip
Deallocate config instance when necessary, to avoid memory leak when in
prefetch mode. svn path=/main/trunk/; revision=15311
-rw-r--r--pym/_emerge/EbuildFetcher.py3
1 files changed, 3 insertions, 0 deletions
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):