From a8c6a6fbf95ecb3807a19da3613e8a5e7a91f0d5 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 08 十一月 2024 09:31:23 +0800
Subject: [PATCH] 模型运行参数缓存

---
 iailab-module-model/iailab-module-model-biz/src/main/resources/template/cpp.vm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/template/cpp.vm b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/cpp.vm
index eeb2f81..939e6ba 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/resources/template/cpp.vm
+++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/cpp.vm
@@ -80,7 +80,7 @@
 			cout << "ConvertPydictToJhmap error" << endl;
 			throw "函数返回值异常!";
 		}
-		delete pModule;
+		/*delete pModule;
 		pModule = nullptr;
 		delete pModule;
 
@@ -108,6 +108,11 @@
 		pArg = nullptr;
 		delete pArg;
 
+		Py_DECREF(pReturn);
+		Py_DECREF(pFunc);
+		Py_DECREF(pModule);
+		Py_CLEAR(pModule);*/
+
 		return result;
 	}
 	catch (const char* msg)

--
Gitblit v1.9.3