From: "Erich E. Hoover" Subject: [PATCH 5/11] ntdll: Fix leak on STATUS_NO_SUCH_FILE in NtQueryAttributesFile. Message-Id: Date: Mon, 8 Sep 2014 13:45:48 -0600 No longer leak the ANSI string when nt_to_unix_file_name_attr returns STATUS_NO_SUCH_FILE. From f9cc27421a71e3b03731c9dc83a6c2551ae6d03e Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Thu, 21 Aug 2014 22:40:44 -0600 Subject: ntdll: Fix leak on STATUS_NO_SUCH_FILE in NtQueryAttributesFile. --- 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 58edc6c..03f7de8 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -2499,9 +2499,9 @@ NTSTATUS WINAPI NtQueryAttributesFile( const OBJECT_ATTRIBUTES *attr, FILE_BASIC 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