diff --git a/loader/loadorder.c b/loader/loadorder.c index 2dbd14dcd53..31c55ab34cd 100644 --- a/loader/loadorder.c +++ b/loader/loadorder.c @@ -342,7 +342,7 @@ BOOL MODULE_InitLoadOrder(void) */ char *tmp = HEAP_strdupA(SystemHeap, 0, buffer); sprintf(buffer, "%s:%s", ld_lib_path, tmp); - free(tmp); + HeapFree( SystemHeap, 0, tmp ); } TRACE(module, "Setting new LD_LIBRARY_PATH=%s\n", buffer);