mp.c: Don't leak the field polynomial.
[catacomb-python] / mp.c
diff --git a/mp.c b/mp.c
index 54f1926..e7cb557 100644 (file)
--- a/mp.c
+++ b/mp.c
@@ -2412,6 +2412,7 @@ XFORMOP(ntop, NTOP)
 static void gfn_pydealloc(PyObject *me)
 {
   if (GFN_P(me)) {
+    MP_DROP(GFN_P(me));
     gfn_destroy(GFN_PTON(me));
     gfn_destroy(GFN_NTOP(me));
   }