We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7eaed5 commit 32823afCopy full SHA for 32823af
1 file changed
Python/hamt.c
@@ -702,6 +702,7 @@ hamt_node_bitmap_assoc(PyHamtNode_Bitmap *self,
702
703
PyHamtNode_Bitmap *ret = hamt_node_bitmap_clone(self);
704
if (ret == NULL) {
705
+ Py_DECREF(sub_node);
706
return NULL;
707
}
708
Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node);
@@ -994,6 +995,7 @@ hamt_node_bitmap_without(PyHamtNode_Bitmap *self,
994
995
996
PyHamtNode_Bitmap *clone = hamt_node_bitmap_clone(self);
997
if (clone == NULL) {
998
999
return W_ERROR;
1000
1001
0 commit comments