This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
!14031
fix model buf may double free
From:
@xutianchun
Reviewed-by: @HilbertDavid,@zhanghaibo5 Signed-off-by:
@HilbertDavid
pull/14031/MERGE
mindspore-ci-bot
Gitee
4 years ago
parent
7149e8c2c9
ca38cff71d
commit
ecb27493b3
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
mindspore/lite/src/lite_model.cc
+ 3
- 0
mindspore/lite/src/lite_model.cc
View File
@@ -333,6 +333,9 @@ Model *ImportFromBuffer(const char *model_buf, size_t size, bool take_buf) {
model->buf_size_ = size;
auto status = model->ConstructModel();
if (status != RET_OK) {
if (take_buf) {
model->buf = nullptr;
}
MS_LOG(ERROR) << "construct model failed.";
delete model;
return nullptr;
Write
Preview
Loading…
Cancel
Save