bpo-32436: Fix compiler warning (#5483)

This commit is contained in:
Yury Selivanov 2018-02-01 22:24:56 -05:00 committed by GitHub
parent 01a0cb8916
commit 55e0839f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2358,6 +2358,8 @@ _PyHamt_Without(PyHamtObject *o, PyObject *key)
Py_INCREF(o);
return o;
case W_NEWNODE: {
assert(new_root != NULL);
PyHamtObject *new_o = hamt_alloc();
if (new_o == NULL) {
Py_DECREF(new_root);