2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

Fix a bug in dangling reference/pointer detection. Thanks to Daniel

Paull <dlp-at-fractaltechnologies.com> for reporting it.


[SVN r18498]
This commit is contained in:
Dave Abrahams
2003-05-22 15:13:22 +00:00
parent e6a176bb1e
commit 9675e4233b
4 changed files with 35 additions and 8 deletions

View File

@@ -218,7 +218,7 @@ namespace
, char const* ref_type)
{
handle<> holder(source);
if (source->ob_refcnt <= 2)
if (source->ob_refcnt <= 1)
{
handle<> msg(
::PyString_FromFormat(