Skip to content

Commit

Permalink
Fix SSID, Password String release crash (project-chip#28853)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo authored and HunsupJung committed Oct 23, 2023
1 parent 1d5dcfc commit 7a4bbf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controller/java/AndroidDeviceControllerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,13 @@ void AndroidDeviceControllerWrapper::OnCommissioningComplete(NodeId deviceId, CH
{
env->ReleaseStringUTFChars(ssidStr, ssid);
env->DeleteGlobalRef(ssidStr);
ssidStr = nullptr;
}
if (passwordStr != nullptr)
{
env->ReleaseStringUTFChars(passwordStr, password);
env->DeleteGlobalRef(passwordStr);
passwordStr = nullptr;
}
if (operationalDatasetBytes != nullptr)
{
Expand Down

0 comments on commit 7a4bbf2

Please sign in to comment.