Skip to content
Snippets Groups Projects
Commit d0ff1b94 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Removed unwanted ref counter increment.

parent 22f2e1c4
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,6 @@ PyObject* py_callback(PyObject *parser, char *target, int option, int nargs,
// Construct the names and values list from the variable argument list.
for(i = 0; i < nargs; i++) {
PyObject *name = PyString_FromString(va_arg(ap, char *));
Py_INCREF(name);
PyList_SetItem(names, i, name);
PyObject *value = va_arg(ap, PyObject *);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment