summaryrefslogtreecommitdiff
path: root/simplejson/_speedups.c
diff options
context:
space:
mode:
Diffstat (limited to 'simplejson/_speedups.c')
-rw-r--r--simplejson/_speedups.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index b6c7b1d..c25909e 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -175,8 +175,8 @@ _is_namedtuple(PyObject *obj)
PyErr_Clear();
return 0;
}
- rval = PyCallable_Check(obj);
- Py_DECREF(obj);
+ rval = PyCallable_Check(_asdict);
+ Py_DECREF(_asdict);
return rval;
}