diff options
author | Xusong Wang <xusongw@google.com> | 2019-05-31 16:25:51 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-05-31 16:25:51 +0000 |
commit | c993319c993cb5209d531b2919f85a6e2f8aba9d (patch) | |
tree | c60a5b40b4860cff56d4e594f289b86e24996c0e | |
parent | 6109869f3050bcb5d03f62102de8b02f961238d2 (diff) | |
parent | a84dacee30f670decf8ff664f907fd2ba7ce0e42 (diff) | |
download | ml-c993319c993cb5209d531b2919f85a6e2f8aba9d.tar.gz |
Merge "Fix memory leakage in ostrstream." into qt-dev
-rw-r--r-- | nn/runtime/ExecutionPlan.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nn/runtime/ExecutionPlan.cpp b/nn/runtime/ExecutionPlan.cpp index 573f8a562..1a55b2951 100644 --- a/nn/runtime/ExecutionPlan.cpp +++ b/nn/runtime/ExecutionPlan.cpp @@ -1522,11 +1522,13 @@ void PlanModelSlicer::initializeSlice(Slice<T_SlicedModel>* slice) { std::ostrstream fromName; fromName << "Slice: From " << ModelVersion<decltype(mHidlModel)>::name << std::ends; graphDump(fromName.str(), mHidlModel); + fromName.freeze(false); } { std::ostrstream toName; toName << "Slice: To " << ModelVersion<decltype(slice->mHidlModel)>::name << std::ends; graphDump(toName.str(), convertToV1_2(slice->mHidlModel)); + toName.freeze(false); } } |