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/06/03 18:34:00 UTC

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

     [ https://issues.apache.org/jira/browse/MINIFICPP-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arpad Boda resolved MINIFICPP-1243.
-----------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 0.8.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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)