static PyObject *node_prefix = NULL, *root_prefix = NULL, *ending = NULL;
/* This is ok because we have the GIL, so this is thread-save by default. */
if (node_prefix == NULL)
static PyObject *node_prefix = NULL, *root_prefix = NULL, *ending = NULL;
/* This is ok because we have the GIL, so this is thread-save by default. */
if (node_prefix == NULL)
- tmp = CPY_STRCAT(node_prefix, name);
-
- Py_DECREF(name);
- if (tmp != NULL)
- ret = CPY_STRCAT(tmp, ending);
- Py_DECREF(tmp);
+ CPY_STRCAT(&ret, node_prefix);
+ CPY_STRCAT(&ret, ending);