diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-03-06 14:09:46 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-03-06 14:09:46 (GMT) |
commit | abda8ddd3e4927bda1b58cf60a5d09db186f6ca5 (patch) | |
tree | 9352ccd0a0602c38f74c67425a0e1896da766d75 /Objects | |
parent | 49f373bf664518bb67c11ea600306a820fd5a6e8 (diff) | |
parent | a915723dc780f2c6753487795988fe3b75e140a9 (diff) | |
download | cpython-abda8ddd3e4927bda1b58cf60a5d09db186f6ca5.zip cpython-abda8ddd3e4927bda1b58cf60a5d09db186f6ca5.tar.gz cpython-abda8ddd3e4927bda1b58cf60a5d09db186f6ca5.tar.bz2 |
merge 3.4 (#23590)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/floatobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 8d85121..1d369f9 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -220,6 +220,7 @@ PyFloat_AsDouble(PyObject *op) if (fo == NULL) return -1; if (!PyFloat_Check(fo)) { + Py_DECREF(fo); PyErr_SetString(PyExc_TypeError, "nb_float should return float object"); return -1; |