Commit 7db2571a authored by Martin v. Löwis's avatar Martin v. Löwis

Merged revisions 84172 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84172 | martin.v.loewis | 2010-08-18 18:12:23 +0200 (Mi, 18 Aug 2010) | 2 lines

  Restore GIL in nis_cat in case of error.
........
parent 64625852
...@@ -12,6 +12,8 @@ What's New in Python 2.7.1? ...@@ -12,6 +12,8 @@ What's New in Python 2.7.1?
Core and Builtins Core and Builtins
----------------- -----------------
- Restore GIL in nis_cat in case of error.
- Issue #8530: Prevent stringlib fastsearch from reading beyond the front - Issue #8530: Prevent stringlib fastsearch from reading beyond the front
of an array. of an array.
......
...@@ -124,6 +124,7 @@ nis_foreach (int instatus, char *inkey, int inkeylen, char *inval, ...@@ -124,6 +124,7 @@ nis_foreach (int instatus, char *inkey, int inkeylen, char *inval,
PyErr_Clear(); PyErr_Clear();
Py_XDECREF(key); Py_XDECREF(key);
Py_XDECREF(val); Py_XDECREF(val);
indata->state = PyEval_SaveThread();
return 1; return 1;
} }
err = PyDict_SetItem(indata->dict, key, val); err = PyDict_SetItem(indata->dict, key, val);
......
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