Skip to content

Commit

Permalink
Android: Fix memory leak in ChipDnssdStopBrowse - Addressed comment b…
Browse files Browse the repository at this point in the history
…y bzbarsky-apple
  • Loading branch information
pgregorr-amazon committed Apr 4, 2024
1 parent cd0e262 commit af15c80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/android/DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ CHIP_ERROR ChipDnssdStopBrowse(intptr_t browseIdentifier)
ChipLogError(Discovery, "Java exception in ChipDnssdStopBrowse");
env->ExceptionDescribe();
env->ExceptionClear();
chip::Platform::Delete(ctx);
return CHIP_JNI_ERROR_EXCEPTION_THROWN;
}
chip::Platform::Delete(ctx);
Expand Down

0 comments on commit af15c80

Please sign in to comment.