summaryrefslogtreecommitdiff
path: root/plugins/pychrysa
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa')
-rw-r--r--plugins/pychrysa/arch/instruction.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/pychrysa/arch/instruction.c b/plugins/pychrysa/arch/instruction.c
index 61d1987..bb977ce 100644
--- a/plugins/pychrysa/arch/instruction.c
+++ b/plugins/pychrysa/arch/instruction.c
@@ -341,6 +341,8 @@ static PyObject *py_arch_instruction_get_operands(PyObject *self, void *unused)
ret = PyTuple_SetItem(result, i, Py_BuildValue("O", opobj));
assert(ret == 0);
+ g_object_unref(G_OBJECT(operand));
+
}
g_arch_instruction_unlock_operands(instr);