Skip to content

Commit c10fe91

Browse files
committed
fix possible error handling
1 parent 1085584 commit c10fe91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/pyexpat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ set_xml_error(pyexpat_state *state,
176176
&& set_error_attr(res, "offset", column)
177177
) {
178178
PyErr_SetObject(state->error, res);
179-
Py_DECREF(res);
180179
}
180+
Py_XDECREF(res);
181181
return NULL;
182182
}
183183

0 commit comments

Comments
 (0)