From: Zac Medico Date: Tue, 2 Mar 2010 20:05:10 +0000 (-0000) Subject: Deallocate config instance when necessary, to avoid memory leak when in X-Git-Tag: v2.1.8~176 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b47d4797712b97710337768b9cf7eef0599ea98;p=portage.git Deallocate config instance when necessary, to avoid memory leak when in prefetch mode. (trunk r15311) svn path=/main/branches/2.1.7/; revision=15546 --- 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):