summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-08-18 16:12:23 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-08-18 16:12:23 (GMT)
commitdfaf9ec93a75a5d41b89dfd4c6540f1289798130 (patch)
tree56d4b625b58dc2f4c9712627ba0a4d6328fcc5a6 /Modules
parentc14190dc5b24716db1474a4c34618098331ce937 (diff)
downloadcpython-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.c1
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);