Problem: win32: not correctly freeing environment
Solution: After we call GetEnvironmentStringsW, we should call
FreeEnvironmentStringsW
closes: #13096
closes: #13094
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ken Takata <kentkt@csc.jp>
*((WCHAR*)gap->ga_data + gap->ga_len++) = *p;
p++;
}
- FreeEnvironmentStrings(base);
+ FreeEnvironmentStringsW(base);
*((WCHAR*)gap->ga_data + gap->ga_len++) = L'\0';
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1901,
/**/
1900,
/**/