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 86ffaf1 commit 5676bfcCopy full SHA for 5676bfc
1 file changed
Python/hamt.c
@@ -701,6 +701,7 @@ hamt_node_bitmap_assoc(PyHamtNode_Bitmap *self,
701
702
PyHamtNode_Bitmap *ret = hamt_node_bitmap_clone(self);
703
if (ret == NULL) {
704
+ Py_DECREF(sub_node);
705
return NULL;
706
}
707
Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node);
@@ -993,6 +994,7 @@ hamt_node_bitmap_without(PyHamtNode_Bitmap *self,
993
994
995
PyHamtNode_Bitmap *clone = hamt_node_bitmap_clone(self);
996
if (clone == NULL) {
997
998
return W_ERROR;
999
1000
0 commit comments