From f64a2e02c930f3d13ce481b2b9808bf4bf76e317 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Fri, 26 Nov 2021 17:13:04 +0800 Subject: [PATCH] Revert "fix(mge/subgraph): fix mem leak" This reverts commit 48beb625e12aba3a4225d2ec114b44a6efde2f6d. GitOrigin-RevId: 5fc58d5903dadc0660f755a75363df7247daa760 --- imperative/python/src/ops.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/imperative/python/src/ops.cpp b/imperative/python/src/ops.cpp index 30f61a0f..4b6a443e 100644 --- a/imperative/python/src/ops.cpp +++ b/imperative/python/src/ops.cpp @@ -450,7 +450,6 @@ void _init_py_op_def(py::module m) { py_type.tp_richcompare = PyOp(OpDef)::tp_richcompare; py_type.tp_getset = py_op::py_getsetters; py_type.tp_repr = py_op::py_repr; - py_type.tp_dealloc = py_dealloc_generic; mgb_assert(PyType_Ready(&py_type) >= 0); m.add_object("OpDef", reinterpret_cast(&py_type)); }