[Yum-devel] possible leak in yum.YumBase()?

James Antill james at fedoraproject.org
Thu Jun 10 14:34:17 UTC 2010


On Thu, 2010-06-10 at 14:50 +0200, Paolo Abeni wrote:
> Hello,
> 
> While tracing a memory leak in a simple python program using the yum
> API, I find a possible memory leak in the YumBase constructor;
> apparently a reference to the newly constructed YumBase instance is
> created in yum.packages.base by yum.depsolve.Depsolve.__init__(), and
> this reference forbid the YumBase destructor to be called on said
> instance.

 Wow ... this is old!

26800603 (Seth Vidal      2004-07-08 07:27:05 +0000   68)     def __init__(self):
26800603 (Seth Vidal      2004-07-08 07:27:05 +0000   69)         packages.base = self
fe3a19ac (Seth Vidal      2007-02-22 03:47:22 +0000   70)         self._ts = None
63ca92c8 (Seth Vidal      2007-02-22 19:57:50 +0000   71)         self._tsInfo = None
1b368a97 (Seth Vidal      2004-09-08 05:03:36 +0000   72)         self.dsCallback = None

...as far as I know it's not used anywhere, "packages.base" only matches
that single line and "base" is not used in the packages module.
 Should be able to just delete that line.



More information about the Yum-devel mailing list