summaryrefslogtreecommitdiff
path: root/misc/win32/apr_app.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/win32/apr_app.c')
-rw-r--r--misc/win32/apr_app.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/win32/apr_app.c b/misc/win32/apr_app.c
index f1b6ce57c..4b1874f33 100644
--- a/misc/win32/apr_app.c
+++ b/misc/win32/apr_app.c
@@ -91,9 +91,11 @@ int wmain(int argc, const wchar_t **wargv, const wchar_t **wenv)
* Reset _wenviron for good measure.
*/
if (_wenviron) {
- wenv = _wenviron;
_wenviron = NULL;
- free((wchar_t **)wenv);
+
+ /* There is no need to free _wenviron because MSVCRT
+ * automatically free 'initial' environment block.
+ */
}
apr_app_init_complete = 1;