diff --git a/plugins/python/python.c b/plugins/python/python.c index 707da20a..337eb415 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -1247,6 +1247,7 @@ error: if (plugin) { if (plugin->tstate) { + Plugin_RemoveAllHooks((PyObject *)plugin); /* FIXME: Handle this? */ if (plugin->tstate == PyInterpreterState_ThreadHead(plugin->tstate->interp)) Py_EndInterpreter(plugin->tstate);