diff options
author | INADA Naoki <songofacandy@gmail.com> | 2010-10-26 01:32:08 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2010-10-26 01:32:08 +0900 |
commit | 3980d381f7ad44b14483dc90c0f6f0a36804c290 (patch) | |
tree | 19c09286ab594c920e55ef9352555ec814e27fcd /msgpack/unpack.h | |
parent | c355f224dc4293683a426e8620a07724ab0e75ac (diff) | |
download | msgpack-python-3980d381f7ad44b14483dc90c0f6f0a36804c290.tar.gz |
Remove unnecessary refcount manipulation.
Diffstat (limited to 'msgpack/unpack.h')
-rw-r--r-- | msgpack/unpack.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h index e4c03bd..404ee5a 100644 --- a/msgpack/unpack.h +++ b/msgpack/unpack.h @@ -178,7 +178,6 @@ int template_callback_map_end(unpack_user* u, msgpack_unpack_object* c) { if (u->object_hook) { PyObject *arglist = Py_BuildValue("(O)", *c); - Py_INCREF(*c); *c = PyEval_CallObject(u->object_hook, arglist); Py_DECREF(arglist); return 0; |