Commit a895cfd8 authored by Christian Heimes's avatar Christian Heimes

Issue #17810: Add NULL check to save_frozenset

CID 1131949:  Dereference null return value  (NULL_RETURNS)
parent 94cbcb91
......@@ -2940,6 +2940,9 @@ save_frozenset(PicklerObject *self, PyObject *obj)
return -1;
iter = PyObject_GetIter(obj);
if (iter == NULL) {
return NULL;
}
for (;;) {
PyObject *item;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment