summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2019-05-16 18:11:27 +0000
committerIvan Zhakov <ivan@apache.org>2019-05-16 18:11:27 +0000
commit861d816d08dae076b26ff875031fcbc3326e4493 (patch)
treea7dae646ce548f1542b6760ef61a17f964469f67
parent39c1e22fe535ab0ee0134539c3fcc6b08529e2a6 (diff)
downloadapr-861d816d08dae076b26ff875031fcbc3326e4493.tar.gz
Fix issue 61109: Use LocalFree() instead of GlobalFree() to free result of
CommandLineToArgvW(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859402 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--misc/win32/start.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/win32/start.c b/misc/win32/start.c
index 2d7b5ff8f..ea8b964ac 100644
--- a/misc/win32/start.c
+++ b/misc/win32/start.c
@@ -127,7 +127,7 @@ APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
wstrs = CommandLineToArgvW(sysstr, &wstrc);
if (wstrs) {
*argc = apr_wastrtoastr(argv, wstrs, wstrc);
- GlobalFree(wstrs);
+ LocalFree(wstrs);
}
}