From: Zac Medico Date: Tue, 14 Nov 2006 14:07:25 +0000 (-0000) Subject: Fix a lock file leak. X-Git-Tag: v2.1.2~465 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=67e32e138a740df0fa02eb9faa6c8cd789db8201;p=portage.git Fix a lock file leak. svn path=/main/trunk/; revision=5046 --- diff --git a/pym/portage.py b/pym/portage.py index 0188cdc4f..965d5030d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5151,7 +5151,7 @@ class portdbapi(dbapi): mylock = None try: - portage_locks.lockfile(mydbkey, wantnewlockfile=1) + mylock = portage_locks.lockfile(mydbkey, wantnewlockfile=1) try: os.unlink(mydbkey) except (IOError, OSError), e: