提交 ce7548d9 编写于 作者: Z zhaoying 提交者: jackzhang235

(bugfix): free cast_op if not null

上级 eb1d5c50
...@@ -91,6 +91,9 @@ int ArgmaxConverter(void* ctx, OpLite* op, KernelBase* kernel) { ...@@ -91,6 +91,9 @@ int ArgmaxConverter(void* ctx, OpLite* op, KernelBase* kernel) {
} }
graph->FuseOp(argmax_op); graph->FuseOp(argmax_op);
CNML_CALL(cnmlDestroyBaseOp(&argmax_op)); CNML_CALL(cnmlDestroyBaseOp(&argmax_op));
if (cast_op) {
CNML_CALL(cnmlDestroyBaseOp(&cast_op));
}
return SUCCESS; return SUCCESS;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册