Thanks for the report. I have no idea why this wasn’t picked up by any of the tests, since this the cause is fairly serious and pretty silly. The fix…
diff --git a/src/opresult.c b/src/opresult.c
index 3f9e113..03796f6 100644
--- a/src/opresult.c
+++ b/src/opresult.c
@@ -34,8 +34,8 @@ ValueResult_value(pycbc_ValueResult *self, void *closure)
static void
OperationResult_dealloc(pycbc_OperationResult *self)
{
- pycbc_Result_dealloc((pycbc_Result*)self);
Py_CLEAR(self->mutinfo);
+ pycbc_Result_dealloc((pycbc_Result*)self);
}
static void