diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2010-08-18 16:12:23 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2010-08-18 16:12:23 (GMT) |
commit | dfaf9ec93a75a5d41b89dfd4c6540f1289798130 (patch) | |
tree | 56d4b625b58dc2f4c9712627ba0a4d6328fcc5a6 /Modules | |
parent | c14190dc5b24716db1474a4c34618098331ce937 (diff) | |
download | cpython-dfaf9ec93a75a5d41b89dfd4c6540f1289798130.zip cpython-dfaf9ec93a75a5d41b89dfd4c6540f1289798130.tar.gz cpython-dfaf9ec93a75a5d41b89dfd4c6540f1289798130.tar.bz2 |
Restore GIL in nis_cat in case of error.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/nismodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c index 16c7b81..d75af5d 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -124,6 +124,7 @@ nis_foreach (int instatus, char *inkey, int inkeylen, char *inval, PyErr_Clear(); Py_XDECREF(key); Py_XDECREF(val); + indata->state = PyEval_SaveThread(); return 1; } err = PyDict_SetItem(indata->dict, key, val); |