bpo-32436: Fix compiler warning (GH-5483) (GH-5486)

(cherry picked from commit 55e0839f26)

Co-authored-by: Yury Selivanov <yury@magic.io>
This commit is contained in:
Miss Islington (bot) 2018-02-01 19:58:19 -08:00 committed by Yury Selivanov
parent 5d2dcd044d
commit 78767786a8
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);