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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user