Which is what I told you twice as an answer to your question: https://stackoverflow.com/questions/59630605/does-rakus-nativecall-run-localfree. Also, documentation: https://docs.raku.org/language/nativecall#index-entry-nativecall
"Call into dynamic libraries that follow the C calling convention" >From where it follows: NativeCall does not call anything for you, WinApi calls or otherwise. If what you do is call into dynamic libraries that follow the C calling convention, it will help you do that. Nothing more (and nothing less). JJ El jue., 9 ene. 2020 a las 7:41, ToddAndMargo via perl6-users (< perl6-us...@perl.org>) escribió: > On 2020-01-08 22:03, ToddAndMargo via perl6-users wrote: > > On 2020-01-08 21:05, ToddAndMargo via perl6-users wrote: > >> Hi All, > >> > >> Does Raku's NativeCall run WinAPI's "LocalFree( )" after it creates > >> buffers? Or do I need to do it myself? > >> > >> > https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-localfree > >> > >> > >> Many thanks, > >> -T > > > > > > I am doing it anyway. It is not throwing an error. > > This may be a bug in NativeCall, resulting in a memory > > leak > > > Follow up: > > NativeCall does not close any WinApi call buffers, so > you need to do it yourself. > -- JJ