From: Anatol Belski Date: Sun, 28 Aug 2016 16:08:06 +0000 (+0200) Subject: fix leak X-Git-Tag: php-7.1.0RC1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=378ed994248082c93e54df7392b50e9ef7b67e5a;p=php fix leak --- diff --git a/ext/standard/link_win32.c b/ext/standard/link_win32.c index 1bc5aa9d3d..7d43162a05 100644 --- a/ext/standard/link_win32.c +++ b/ext/standard/link_win32.c @@ -157,6 +157,7 @@ PHP_FUNCTION(symlink) RETURN_FALSE; } if ((attr = GetFileAttributesW(dstw)) == INVALID_FILE_ATTRIBUTES) { + free(dstw); php_error_docref(NULL, E_WARNING, "Could not fetch file information(error %d)", GetLastError()); RETURN_FALSE; }