kernel32/tests: Fix LocalAlloc() allocated leaks.

This commit is contained in:
Nikolay Sivov 2009-12-21 14:59:49 +03:00 committed by Alexandre Julliard
parent f33db8a02d
commit 8b805e48fb
1 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,8 @@ static void test__hwrite( void )
ret = DeleteFileA( filename ); ret = DeleteFileA( filename );
ok( ret != 0, "DeleteFile failed (%d)\n", GetLastError( ) ); ok( ret != 0, "DeleteFile failed (%d)\n", GetLastError( ) );
LocalFree( contents );
} }
@ -563,6 +565,8 @@ static void test__lwrite( void )
ret = DeleteFileA( filename ); ret = DeleteFileA( filename );
ok( ret, "DeleteFile failed (%d)\n", GetLastError( ) ); ok( ret, "DeleteFile failed (%d)\n", GetLastError( ) );
LocalFree( contents );
} }
static void test_CopyFileA(void) static void test_CopyFileA(void)