[coverity] 1543285 Resource leak

This commit is contained in:
akallabeth 2024-04-11 10:12:02 +02:00 committed by akallabeth
parent 1e325dc2de
commit 1affbd0655

View File

@ -558,6 +558,7 @@ static BOOL arm_pick_base64Utf16Field(const cJSON* json, const char* name, BYTE*
if (!output2 || !len2)
{
WLog_ERR(TAG, "error when decode('utf-16') for %s", name);
free(output2);
return FALSE;
}
@ -567,6 +568,7 @@ static BOOL arm_pick_base64Utf16Field(const cJSON* json, const char* name, BYTE*
if (!output || !*plen)
{
WLog_ERR(TAG, "error when second unbase64 for %s", name);
free(output);
return FALSE;
}