Fix resource not release bug

This commit is contained in:
wuyongkang 2020-07-29 10:32:31 +08:00
parent 4f1e586ee3
commit 983cb9b23d
1 changed files with 1 additions and 0 deletions

View File

@ -262,6 +262,7 @@ void ExecutorPy::DelNetRes(const std::string &id) {
for (auto &item : tmp_info) {
if (item.first.find(id) != string::npos) {
MS_LOG(DEBUG) << "Delete network res:" << item.first;
item.second = nullptr;
(void)info_.erase(item.first);
flag = true;
}