com php-src: Free the HMODULE handle after use: win32/ioutil.c
| From: | Kalle Sommer Nielsen | Date: | Fri, 21 Jul 2017 20:24:14 +0000 |
| Subject: | com php-src: Free the HMODULE handle after use: win32/ioutil.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98701@lists.php.net to get a copy of this message | ||
Commit: 07e8bdd8c2bc6a88ab54d41b3ebd3685cb421257
Author: Kalle Sommer Nielsen <kalle@php.net> Fri, 21 Jul 2017 22:24:14 +0200
Parents: d86a333a43bc16fd4a408df05e1a89fca83f4e2d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=07e8bdd8c2bc6a88ab54d41b3ebd3685cb421257
Log:
Free the HMODULE handle after use
Changed paths:
M win32/ioutil.c
Diff:
diff --git a/win32/ioutil.c b/win32/ioutil.c
index aa56b94..65518e1 100644
--- a/win32/ioutil.c
+++ b/win32/ioutil.c
@@ -560,6 +560,8 @@ BOOL php_win32_ioutil_init(void)
if (!canonicalize_path_w) {
canonicalize_path_w = (MyPathCchCanonicalizeEx)MyPathCchCanonicalizeExFallback;
}
+
+ FreeLibrary(hMod);
} else {
canonicalize_path_w = (MyPathCchCanonicalizeEx)MyPathCchCanonicalizeExFallback;
}