mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix #506: Python Module Seems to Leak Memory if it Experiences an
Unhandled Exception.
This commit is contained in:
parent
04e9adc610
commit
f62994f6ea
2 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
2 July 2021: Wouter
|
||||||
|
- Fix #506: Python Module Seems to Leak Memory if it Experiences an
|
||||||
|
Unhandled Exception.
|
||||||
|
|
||||||
25 June 2021: Wouter
|
25 June 2021: Wouter
|
||||||
- Fix up permissions on rpl data file in tests.
|
- Fix up permissions on rpl data file in tests.
|
||||||
- Fix testbound newline treatment in moment_read and tempfile write.
|
- Fix testbound newline treatment in moment_read and tempfile write.
|
||||||
|
|
|
||||||
|
|
@ -245,6 +245,11 @@ cleanup:
|
||||||
/* clear the exception, by not restoring it */
|
/* clear the exception, by not restoring it */
|
||||||
/* Restore the exception state */
|
/* Restore the exception state */
|
||||||
/* PyErr_Restore(exc_typ, exc_val, exc_tb); */
|
/* PyErr_Restore(exc_typ, exc_val, exc_tb); */
|
||||||
|
/* when using PyErr_Restore there is no need to Py_XDECREF for
|
||||||
|
* these 3 pointers. */
|
||||||
|
Py_XDECREF(exc_typ);
|
||||||
|
Py_XDECREF(exc_val);
|
||||||
|
Py_XDECREF(exc_tb);
|
||||||
}
|
}
|
||||||
|
|
||||||
int pythonmod_init(struct module_env* env, int id)
|
int pythonmod_init(struct module_env* env, int id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue