com php-src: fix leak: win32/ioutil.c
| From: | Anatol Belski | Date: | Mon, 29 Aug 2016 15:25:13 +0000 |
| Subject: | com php-src: fix leak: win32/ioutil.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94111@lists.php.net to get a copy of this message | ||
Commit: 7ecfb4b95447b2da3ff1fbef3a3b2a9eacd38a63
Author: Anatol Belski <ab@php.net> Mon, 29 Aug 2016 17:25:13 +0200
Parents: c4961fa8b637cd4b6e20ffa34a94cbaf60363fd8
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7ecfb4b95447b2da3ff1fbef3a3b2a9eacd38a63
Log:
fix leak
Changed paths:
M win32/ioutil.c
Diff:
diff --git a/win32/ioutil.c b/win32/ioutil.c
index c57cff1..b01edd2 100644
--- a/win32/ioutil.c
+++ b/win32/ioutil.c
@@ -425,6 +425,7 @@ PW32IO wchar_t *php_win32_ioutil_getcwd_w(const wchar_t *buf, int len)
if (!GetCurrentDirectoryW(len, buf)) {
err = GetLastError();
SET_ERRNO_FROM_WIN32_CODE(err);
+ free(tmp_buf);
return NULL;
}