Commit in reactos/lib/kernel32/misc on MAIN
nls.c+1-31.5 -> 1.6
can't free non-allocated memory

reactos/lib/kernel32/misc
nls.c 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- nls.c	21 Sep 2004 17:41:24 -0000	1.5
+++ nls.c	30 Nov 2004 02:28:00 -0000	1.6
@@ -656,7 +656,6 @@
    Status = NtOpenKey(&KeyHandle, KEY_READ, &ObjectAttributes);
    if (!NT_SUCCESS(Status))
    {
-      RtlFreeUnicodeString(&ValueName);
       return FALSE;
    }
 
@@ -667,14 +666,13 @@
    if (Kvpi == NULL)
    {
       NtClose(KeyHandle);
-      RtlFreeUnicodeString(&ValueName);
       return FALSE;
    }
 
    /* Query the file name for our code page. */
    Status = NtQueryValueKey(KeyHandle, &ValueName, KeyValuePartialInformation,
                             Kvpi, KvpiSize, &KvpiSize);
-   RtlFreeUnicodeString(&ValueName);
+
    NtClose(KeyHandle);
 
    /* Check if we succeded and the value is non-empty string. */
CVSspam 0.2.8