forked from huawei/mindspore2022
!26885 [MSLITE] create lite session failed bug
Merge pull request !26885 from ling/r1.5
This commit is contained in:
commit
7acd91dac2
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue