Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 02ac44c

Browse files
Tom CherryGerrit Code Review
authored andcommitted
Merge "logd: fix memory leak due to slow reader"
2 parents 34ffa7e + 5f93072 commit 02ac44c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

logd/LogTimes.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ int LogTimeEntry::FilterSecondPass(const LogBufferElement* element, void* obj) {
204204
goto skip;
205205
}
206206

207+
if (me->mRelease) {
208+
goto stop;
209+
}
210+
207211
if (!me->mTail) {
208212
goto ok;
209213
}

0 commit comments

Comments
 (0)