From a1ab8124008deb6d6e1d46ed3438018a75adffe5 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期四, 09 一月 2025 11:51:35 +0800 Subject: [PATCH] 去掉cpp中删除python资源的代码 --- iailab-module-model/iailab-module-model-biz/src/main/resources/template/cpp.vm | 12 +----------- 1 files changed, 1 insertions(+), 11 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 b4ddf01..722a8de 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 @@ -94,17 +94,7 @@ cout << "ConvertPydictToJhmap error" << endl; throw "函数返回值异常!"; } - cout << "clear_py_memory" << endl; - Py_XDECREF(pFunc); -#{foreach} ($column in [1..$entity.dataLength]) - Py_XDECREF(data_${column}); -#{end} -#{if}($entity.model==1) - Py_XDECREF(model_path); -#{end} - Py_XDECREF(settings_1); - Py_XDECREF(pArg); - Py_XDECREF(pReturn); + return result; } catch (const char* msg) -- Gitblit v1.9.3