summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/arch/operands/rename.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-28 23:29:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-28 23:29:32 (GMT)
commit5060f746a2ea51e14282b02bd374f9550c925827 (patch)
tree5cfd195d09568f13f919cbe060f8cf253eda4ed2 /plugins/pychrysalide/arch/operands/rename.c
parentce174b991223c85afba55a24e7adc9c8156f7d48 (diff)
Updated the Python bindings for targetable operands.
Diffstat (limited to 'plugins/pychrysalide/arch/operands/rename.c')
-rw-r--r--plugins/pychrysalide/arch/operands/rename.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/pychrysalide/arch/operands/rename.c b/plugins/pychrysalide/arch/operands/rename.c
index 7a5be98..60985db 100644
--- a/plugins/pychrysalide/arch/operands/rename.c
+++ b/plugins/pychrysalide/arch/operands/rename.c
@@ -441,12 +441,14 @@ static GRenamedOperand *py_renameable_operand_build_wrapper(const GRenameableOpe
if (ret == 1)
g_object_ref(G_OBJECT(result));
- Py_DECREF(pyret);
+ PyErr_Clear();
- Py_DECREF(args);
+ Py_DECREF(pyret);
}
+ Py_DECREF(args);
+
}
Py_DECREF(pyobj);