Browse Source

Fix a possible decref of a borrowed reference in symtable.c. (GH-9786)

pull/9791/merge
Zackery Spytz 7 years ago
committed by Serhiy Storchaka
parent
commit
fc439d20de
  1. 6
      Python/symtable.c

6
Python/symtable.c

@ -625,8 +625,10 @@ update_symbols(PyObject *symbols, PyObject *scopes,
return 0;
itr = PyObject_GetIter(free);
if (!itr)
goto error;
if (itr == NULL) {
Py_DECREF(v_free);
return 0;
}
while ((name = PyIter_Next(itr))) {
v = PyDict_GetItem(symbols, name);

Loading…
Cancel
Save