Codebase list unbound / f62994f
- Fix #506: Python Module Seems to Leak Memory if it Experiences an Unhandled Exception. W.C.A. Wijngaards 2 years ago
2 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 2 July 2021: Wouter
1 - Fix #506: Python Module Seems to Leak Memory if it Experiences an
2 Unhandled Exception.
3
04 25 June 2021: Wouter
15 - Fix up permissions on rpl data file in tests.
26 - Fix testbound newline treatment in moment_read and tempfile write.
244244 /* clear the exception, by not restoring it */
245245 /* Restore the exception state */
246246 /* PyErr_Restore(exc_typ, exc_val, exc_tb); */
247 /* when using PyErr_Restore there is no need to Py_XDECREF for
248 * these 3 pointers. */
249 Py_XDECREF(exc_typ);
250 Py_XDECREF(exc_val);
251 Py_XDECREF(exc_tb);
247252 }
248253
249254 int pythonmod_init(struct module_env* env, int id)