Dan Kegel : advapi32: Fix leak in test_symlinks.
Alexandre Julliard
julliard at winehq.org
Wed Feb 17 10:12:03 CST 2010
Module: wine
Branch: master
Commit: fed6738bc40b30b6abe729afab9c1b26e077f35c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fed6738bc40b30b6abe729afab9c1b26e077f35c
Author: Dan Kegel <dank at kegel.com>
Date: Tue Feb 16 20:51:42 2010 -0800
advapi32: Fix leak in test_symlinks.
---
dlls/advapi32/tests/registry.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 4601134..2ad9f89 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -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)
More information about the wine-cvs
mailing list