Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 7a6fa8233 -> 7c8f31199


DISPATCH-1051: remove extra incref of python long object


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/7c8f3119
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/7c8f3119
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/7c8f3119

Branch: refs/heads/master
Commit: 7c8f3119918ffebc2e444e0b66d0505f4d83dcc8
Parents: 7a6fa82
Author: Kenneth Giusti <kgiu...@apache.org>
Authored: Tue Jun 26 12:11:57 2018 -0400
Committer: Kenneth Giusti <kgiu...@apache.org>
Committed: Tue Jun 26 12:11:57 2018 -0400

----------------------------------------------------------------------
 src/python_embedded.c | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/7c8f3119/src/python_embedded.c
----------------------------------------------------------------------
diff --git a/src/python_embedded.c b/src/python_embedded.c
index 12464f1..af88f1d 100644
--- a/src/python_embedded.c
+++ b/src/python_embedded.c
@@ -704,7 +704,6 @@ static PyTypeObject IoAdapterType = {
 static void qd_register_constant(PyObject *module, const char *name, uint32_t 
value)
 {
     PyObject *const_object = PyLong_FromLong((long) value);
-    Py_INCREF(const_object);
     PyModule_AddObject(module, name, const_object);
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to