mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
patch 9.0.1901: win32: not correctly freeing environment
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>
This commit is contained in:
parent
e7d79eb98a
commit
ad29f6af0a
@ -5788,7 +5788,7 @@ win32_build_env(dict_T *env, garray_T *gap, int is_terminal)
|
|||||||
*((WCHAR*)gap->ga_data + gap->ga_len++) = *p;
|
*((WCHAR*)gap->ga_data + gap->ga_len++) = *p;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
FreeEnvironmentStrings(base);
|
FreeEnvironmentStringsW(base);
|
||||||
*((WCHAR*)gap->ga_data + gap->ga_len++) = L'\0';
|
*((WCHAR*)gap->ga_data + gap->ga_len++) = L'\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1901,
|
||||||
/**/
|
/**/
|
||||||
1900,
|
1900,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user