MCInst_addOperand2() does not need to return value
diff --git a/MCInst.c b/MCInst.c
index 8ca3f8c..ddaee45 100644
--- a/MCInst.c
+++ b/MCInst.c
@@ -70,25 +70,12 @@
return inst->size;
}
-// NOTE: this will free @Op argument
-int MCInst_addOperand(MCInst *inst, MCOperand *Op)
-{
- inst->Operands[inst->size] = *Op;
- cs_mem_free(Op);
-
- inst->size++;
-
- return 0;
-}
-
// This addOperand2 function doesnt free Op
-int MCInst_addOperand2(MCInst *inst, MCOperand *Op)
+void MCInst_addOperand2(MCInst *inst, MCOperand *Op)
{
inst->Operands[inst->size] = *Op;
inst->size++;
-
- return 0;
}
void MCOperand_Init(MCOperand *op)