[C++-sig] Re: boost: python may cause memory leaks?
Niall Douglas
s_sourceforge at nedprod.com
Wed Dec 24 19:44:12 CET 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 24 Dec 2003 at 8:03, David Abrahams wrote:
> That's not the problem. The problem is that Boost.Python hangs on to
> some Python references even after Py_Finalize is called. When the
> application exits, those reference counts are decremented, even though
> there's no interpreter running.
Can't you at least do for those held references specially if(ref &&
Py_IsInitialized()) decref()?
It does seem a shame to leak memory. I guess it's not so important in
modern days of process boundaries, but I guess a non-leaking program
shows someone has taken time and care which can only be a good thing.
Certainly when certain software vendors who I won't mention publicly
choose to ship debug builds of their retail software because the MSVC
CRT debug lib doesn't crash!!! :(
Cheers,
Niall
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBP+nefMEcvDLFGKbPEQIp6ACghIV+NbkBMytCe2LEdmfN2DAGY6gAn0S5
v1YpRyr5IaMRJ0n99jisWBoJ
=uF7j
-----END PGP SIGNATURE-----
More information about the Cplusplus-sig
mailing list