-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Fix memory leakage in AndroidLogDownloadFromNode Class #36742
base: master
Are you sure you want to change the base?
[Android] Fix memory leakage in AndroidLogDownloadFromNode Class #36742
Conversation
50b05db
to
787eb20
Compare
787eb20
to
8830a42
Compare
PR #36742: Size comparison from cbf92b7 to 8830a42 Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
static_cast<jlong>(mRemoteNodeId), static_cast<jlong>(err.AsInteger())); | ||
exit: | ||
// Finish this function, this object will be deleted. | ||
delete this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not correct, this function is inside callback, you cannot delete this, you should pass context object(AndroidLogDownloadFromNode) from the callback inside FinishLogDownloadFromNode, then delete in the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joonhaengHeo this also needs a Testing
section in the summary to explain how this was tested.
Since this did not update any unit tests, the testing is manual
so we need to meet a higher bar (make it less convenient for most PRs to just be manually tested because it is easier) so we need a more detailed description on how the manual tests were done as well as a justification why automated testing of the newly added code is impossible.
Fix #36734
Fixed an issue where memory was not deleted after finishing AndroidLogDownloadFromNode.