com php-src: fix leak: ext/standard/link_win32.c

From: Date: Sun, 28 Aug 2016 17:42:41 +0000
Subject: com php-src: fix leak: ext/standard/link_win32.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94090@lists.php.net to get a copy of this message
Commit: 378ed994248082c93e54df7392b50e9ef7b67e5a Author: Anatol Belski <ab@php.net> Sun, 28 Aug 2016 18:08:06 +0200 Parents: 10c2ac8c81b2183ab6ddcc96adbd7809331c47db Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=378ed994248082c93e54df7392b50e9ef7b67e5a Log: fix leak Changed paths: M ext/standard/link_win32.c Diff: diff --git a/ext/standard/link_win32.c b/ext/standard/link_win32.c index 1bc5aa9..7d43162 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; }

« previous php.cvs (#94090) next »