From f37c3e5dfbe4f6d86a5215a2f0f56bbfcc9a50d8 Mon Sep 17 00:00:00 2001 From: Lite Ye Date: Thu, 26 Oct 2023 23:07:59 -0400 Subject: [PATCH] Fix typo --- src/runtime/registry.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/registry.cc b/src/runtime/registry.cc index 0db8786145d38..7fd37c68e905b 100644 --- a/src/runtime/registry.cc +++ b/src/runtime/registry.cc @@ -183,9 +183,9 @@ class EnvCAPIRegistry { } void DecRef(void* python_obj) { - ICHECK(py_inc_ref) << "Attempted to call Py_IncRef through EnvCAPIRegistry, " - << "but Py_IncRef wasn't registered"; - (*py_inc_ref)(python_obj); + ICHECK(py_dec_ref) << "Attempted to call Py_DecRef through EnvCAPIRegistry, " + << "but Py_DecRef wasn't registered"; + (*py_dec_ref)(python_obj); } private: