You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2025. It is now read-only.
When using the
FORMAT_MESSAGE_ALLOCATE_BUFFERflag you are supposed toLocalFreethe returned string at some point.If you are single-threaded you can do something like
This will leak one string in total instead of one for each call.
If you are multi-threaded you might want to use TLS or add the strings to a list you free later...