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