This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients amaury.forgeotdarc, vstinner
Date 2012-11-09.01:18:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352423909.59.0.679539006117.issue16445@psf.upfronthosting.co.za>
In-reply-to
Content
py_clear.spatch	replaces:
  Py_DECREF(obj->attr); obj->attr = NULL;
but also:
  Py_DECREF(obj); obj = NULL;

If the second pattern is not dangerous, py_clear.spatch can be modified to only match the first pattern: see py_decref_replace.spatch of issue #16447 for an example.
History
Date User Action Args
2012-11-09 01:18:29vstinnersetrecipients: + vstinner, amaury.forgeotdarc
2012-11-09 01:18:29vstinnersetmessageid: <1352423909.59.0.679539006117.issue16445@psf.upfronthosting.co.za>
2012-11-09 01:18:29vstinnerlinkissue16445 messages
2012-11-09 01:18:29vstinnercreate