diff options
-rw-r--r-- | ext/standard/link_win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |