From efd21ce982cb9fbd4370ba1ff4364fa92aa9214b Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 4 May 2013 00:00:48 -0300 Subject: [PATCH] fix possible crash --- plugins/python/python.c | 1 + 1 file changed, 1 insertion(+) 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);