rand.c (BBSPriv.generate): Release the event handler afterwards.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 14 Nov 2019 18:53:56 +0000 (18:53 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:11 +0000 (22:18 +0000)
rand.c

diff --git a/rand.c b/rand.c
index 2c58e64..eeece65 100644 (file)
--- a/rand.c
+++ b/rand.c
@@ -1384,6 +1384,7 @@ static PyObject *meth__BBSPriv_generate(PyObject *me,
   rc->bp.n = MP_COPY(bp.n);
 end:
   mp_drop(bp.p); mp_drop(bp.q); mp_drop(bp.n); mp_drop(x);
+  droppgev(&evt);
   return ((PyObject *)rc);
 }