On 21 April 2010 17:19, Joris Huizer <[email protected]> wrote: > - path = malloc(strlen(filename) + 1); > + path = HeapAlloc(GetProcessHeap(), 0, strlen(filename) + 1); No, malloc() is correct, wpp frees it again with free().
On 21 April 2010 17:19, Joris Huizer <[email protected]> wrote: > - path = malloc(strlen(filename) + 1); > + path = HeapAlloc(GetProcessHeap(), 0, strlen(filename) + 1); No, malloc() is correct, wpp frees it again with free().