From: "Erich E. Hoover" Subject: [PATCH 4/11] ntdll: Fix leak on STATUS_NO_SUCH_FILE in NtQueryFullAttributesFile. Message-Id: Date: Mon, 8 Sep 2014 13:44:52 -0600 No longer leak the ANSI string when nt_to_unix_file_name_attr returns STATUS_NO_SUCH_FILE. From e32938663a6c966226cedcc67c60be4299f7d048 Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Thu, 21 Aug 2014 22:40:09 -0600 Subject: ntdll: Fix leak on STATUS_NO_SUCH_FILE in NtQueryFullAttributesFile. --- dlls/ntdll/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 92d9829..58edc6c 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -2469,9 +2469,9 @@ NTSTATUS WINAPI NtQueryFullAttributesFile( const OBJECT_ATTRIBUTES *attr, if (DIR_is_hidden_file( attr->ObjectName )) info->FileAttributes |= FILE_ATTRIBUTE_HIDDEN; } - RtlFreeAnsiString( &unix_name ); } else WARN("%s not found (%x)\n", debugstr_us(attr->ObjectName), status ); + RtlFreeAnsiString( &unix_name ); return status; } -- 1.7.9.5