You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Arpad Boda (Jira)" <ji...@apache.org> on 2020/05/29 14:59:00 UTC

[jira] [Created] (MINIFICPP-1243) OsUtils::userIdToUsername leaks memory on Windows

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)