diff options
| author | AlexSm <[email protected]> | 2024-02-12 10:25:32 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-12 10:25:32 +0100 |
| commit | 12610a7bf38a4f1215aeb6eeea5e27e271c17e50 (patch) | |
| tree | fce5b3816c5d68d91d7f1f6617c65b04e92f79a9 /contrib/tools/python3/src/Python/symtable.c | |
| parent | b314cf4cbae67afc30e1f9c2f14047de0ad996cb (diff) | |
| parent | 6a0655781d6103303eed0d377c3fb0955e468b5b (diff) | |
Merge pull request #1777 from alexv-smirnov/mergelibs13
Library import 13
Diffstat (limited to 'contrib/tools/python3/src/Python/symtable.c')
| -rw-r--r-- | contrib/tools/python3/src/Python/symtable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/tools/python3/src/Python/symtable.c b/contrib/tools/python3/src/Python/symtable.c index 37e5c697405..3519f620984 100644 --- a/contrib/tools/python3/src/Python/symtable.c +++ b/contrib/tools/python3/src/Python/symtable.c @@ -728,6 +728,12 @@ update_symbols(PyObject *symbols, PyObject *scopes, } Py_DECREF(name); } + + /* Check if loop ended because of exception in PyIter_Next */ + if (PyErr_Occurred()) { + goto error; + } + Py_DECREF(itr); Py_DECREF(v_free); return 1; |
