portdbapi: cleanup when base module is reloaded
authorZac Medico <zmedico@gentoo.org>
Sat, 4 Jun 2011 01:38:40 +0000 (18:38 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Jun 2011 01:38:40 +0000 (18:38 -0700)
commiteb8325c739fdafbff6652e43f6fe8074f1f0aa28
treea96f98317bfdc7a8944714095b0e5fa2f06d32ba
parent989fe2831c94ab1afaad8220742c80c2cbd28730
portdbapi: cleanup when base module is reloaded

This prevents memory leaks via portdbapi.portdbapi_instances when the
module is reloaded. Also, there's no need for ebuild(1) to call
close_portdbapi_caches() since it's now handled automatically during
the reload.
bin/ebuild
pym/portage/__init__.py