Ver código fonte

Removed unwanted ref counter increment.

Sander Mathijs van Veen 14 anos atrás
pai
commit
d0ff1b94ea
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      src/c/bison_callback.c

+ 0 - 1
src/c/bison_callback.c

@@ -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 *);