summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-03-06 14:09:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-03-06 14:09:46 (GMT)
commitabda8ddd3e4927bda1b58cf60a5d09db186f6ca5 (patch)
tree9352ccd0a0602c38f74c67425a0e1896da766d75 /Objects/floatobject.c
parent49f373bf664518bb67c11ea600306a820fd5a6e8 (diff)
parenta915723dc780f2c6753487795988fe3b75e140a9 (diff)
downloadcpython-abda8ddd3e4927bda1b58cf60a5d09db186f6ca5.zip
cpython-abda8ddd3e4927bda1b58cf60a5d09db186f6ca5.tar.gz
cpython-abda8ddd3e4927bda1b58cf60a5d09db186f6ca5.tar.bz2
merge 3.4 (#23590)
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c1
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;