[issue8817] Expose round-to-nearest division algorithm in Objects/longobject.c

Alexander Belopolsky report at bugs.python.org
Wed May 26 01:11:40 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Looking at

    Py_DECREF(one);
 
    result = PyTuple_New(2);
    if (result == NULL)
        goto error;
..
  error:
    Py_XDECREF(one);


If PyTuple_New fails, wouldn't it result in one being DECREF's twice?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8817>
_______________________________________


More information about the Python-bugs-list mailing list