eric pouech (@epo) commented about programs/cmd/batch.c:
size = GetEnvironmentVariableW(env, NULL, 0); if (size > 0) {
WCHAR *fullpath = heap_xalloc(size * sizeof(WCHAR));
WCHAR *fullpath = xalloc(size * sizeof(WCHAR));
while you're changing it, you can IMO use malloc here as the case of an OOM condition is handled below