zodiacon / SystemExplorer

Windows System Explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A memory leak

BeneficialCode opened this issue · comments

The function Sid::AsString() implementation in Sid.cpp exists a minor bug. Because the ::ConvertSidToStringSid return a result that later must be freed by the caller with LocalFree. I think it should add a local variable std::wstring result to return the result as same as Sys10Prog chapter 16 do. :)

You're right :) Fixing.