advapi32: Fix leak in test_symlinks.

This commit is contained in:
Dan Kegel 2010-02-16 20:51:42 -08:00 committed by Alexandre Julliard
parent 3f3101138a
commit fed6738bc4
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ static DWORD (WINAPI *pRegGetValueA)(HKEY,LPCSTR,LPCSTR,DWORD,LPDWORD,PVOID,LPDW
static DWORD (WINAPI *pRegDeleteTreeA)(HKEY,LPCSTR);
static NTSTATUS (WINAPI * pNtDeleteKey)(HANDLE);
static NTSTATUS (WINAPI * pRtlFormatCurrentUserKeyPath)(UNICODE_STRING*);
static NTSTATUS (WINAPI * pRtlFreeUnicodeString)(PUNICODE_STRING);
/* Debugging functions from wine/libs/wine/debug.c */
@ -125,6 +126,7 @@ static void InitFunctionPtrs(void)
ADVAPI32_GET_PROC(RegDeleteTreeA);
pRtlFormatCurrentUserKeyPath = (void *)GetProcAddress( hntdll, "RtlFormatCurrentUserKeyPath" );
pRtlFreeUnicodeString = (void *)GetProcAddress(hntdll, "RtlFreeUnicodeString");
pNtDeleteKey = (void *)GetProcAddress( hntdll, "NtDeleteKey" );
}
@ -1633,6 +1635,7 @@ static void test_symlinks(void)
RegCloseKey( link );
HeapFree( GetProcessHeap(), 0, target );
pRtlFreeUnicodeString( &target_str );
}
START_TEST(registry)