summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/arch/operands/rename.c
diff options
context:
space:
mode:
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);