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

Commit 9befe60

Browse files
authored
Merge pull request #626 from openweave/bug/fix_wdm_client_leak
Fix the typo and leak in mpPublisherPathList
2 parents 0b97606 + fecf6dd commit 9befe60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device-manager/WeaveDataManagementClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ void WdmClient::ClientEventCallback(void * const aAppState, SubscriptionClient::
970970
}
971971
WeaveLogDetail(DataManagement, "prepare to subscribe %d trait data sink", traitListLen);
972972

973-
if (pWdmClient->mpPublisherPathList == NULL)
973+
if (pWdmClient->mpPublisherPathList != NULL)
974974
{
975975
delete[] pWdmClient->mpPublisherPathList;
976976
}

0 commit comments

Comments
 (0)