apply changes from review

This commit is contained in:
sweeneyde 2020-08-02 05:05:55 -04:00
parent ce288c9e91
commit d79148a0c1
1 changed files with 4 additions and 4 deletions

View File

@ -872,13 +872,13 @@ build_tree(mergeobject *mo)
mo->root = (merge_node *)PyList_GET_ITEM(nodes, 0);
Py_INCREF(mo->root);
Py_CLEAR(nodes);
Py_DECREF(nodes);
return 0;
error:
Py_CLEAR(mo->iterables);
Py_CLEAR(new_nodes);
Py_CLEAR(nodes);
Py_XDECREF(new_nodes);
Py_XDECREF(nodes);
return -1;
}
@ -1040,7 +1040,7 @@ merge_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
int reverse = 0;
if (kwds != NULL) {
char *kwlist[] = {"key", "reverse", 0};
char *kwlist[] = {"key", "reverse", NULL};
PyObject *tmpargs = PyTuple_New(0);
if (tmpargs == NULL) {
return NULL;