Arpad Boda created MINIFICPP-1243:
-------------------------------------
Summary: OsUtils::userIdToUsername leaks memory on Windows
Key: MINIFICPP-1243
URL: https://issues.apache.org/jira/browse/MINIFICPP-1243
Project: Apache NiFi MiNiFi C++
Issue Type: Bug
Affects Versions: 0.7.0
Reporter: Arpad Boda
Assignee: Arpad Boda
Fix For: 0.8.0
The following call assigns a pointer to the pSidOwner:
{code}ConvertStringSidToSidA(name.c_str(), &pSidOwner){code}
Freeing it is the caller's responsibility, using localFree.
Further details:
https://docs.microsoft.com/en-us/windows/win32/api/sddl/nf-sddl-convertstringsidtosida
--
This message was sent by Atlassian Jira
(v8.3.4#803005)