!26885 [MSLITE] create lite session failed bug

Merge pull request !26885 from ling/r1.5
This commit is contained in:
i-robot 2021-11-29 08:10:02 +00:00 committed by Gitee
commit 7acd91dac2
1 changed files with 1 additions and 0 deletions

View File

@ -556,6 +556,7 @@ session::LiteSession *ModelImpl::CreateLiteSession(lite::InnerContext *context)
auto session = new (std::nothrow) lite::LiteSession();
if (session == nullptr) {
MS_LOG(ERROR) << "create session failed";
delete context;
return nullptr;
}