]> granicus.if.org Git - php/commitdiff
fix leak
authorAnatol Belski <ab@php.net>
Mon, 29 Aug 2016 15:25:13 +0000 (17:25 +0200)
committerAnatol Belski <ab@php.net>
Mon, 29 Aug 2016 15:25:13 +0000 (17:25 +0200)
win32/ioutil.c

index c57cff18746030d99192dc02d38a0f4c5c631773..b01edd241d4fb3d0e528cc8a9eb0ffa9514d2a78 100644 (file)
@@ -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;
        }