wine
15 years agowininet: Make sure to not read over chunk end in read_gzip_data.
Jacek Caban [Wed, 16 Dec 2009 23:02:47 +0000 (00:02 +0100)] 
wininet: Make sure to not read over chunk end in read_gzip_data.

15 years agowined3d: Fix a bug in BtlFast which was uncovered by the 32-bit dibsection support.
Roderick Colenbrander [Sat, 14 Nov 2009 15:30:25 +0000 (16:30 +0100)] 
wined3d: Fix a bug in BtlFast which was uncovered by the 32-bit dibsection support.

15 years agocryptnet: If the caller specifies the location of a CRL, check a cert's revocation...
Juan Lang [Mon, 30 Nov 2009 19:02:50 +0000 (11:02 -0800)] 
cryptnet: If the caller specifies the location of a CRL, check a cert's revocation status against it.

15 years agocryptnet: Use helper function to check a cert against a CRL.
Juan Lang [Mon, 30 Nov 2009 18:14:48 +0000 (10:14 -0800)] 
cryptnet: Use helper function to check a cert against a CRL.

15 years agocryptnet: Change guard variable to simplify loop.
Juan Lang [Tue, 1 Dec 2009 23:08:21 +0000 (15:08 -0800)] 
cryptnet: Change guard variable to simplify loop.

15 years agocryptnet: Use helper function to verify a certificate's revocation.
Juan Lang [Thu, 3 Dec 2009 18:54:50 +0000 (10:54 -0800)] 
cryptnet: Use helper function to verify a certificate's revocation.

15 years agourlmon: Fixed race in tests.
Jacek Caban [Wed, 16 Dec 2009 18:57:10 +0000 (19:57 +0100)] 
urlmon: Fixed race in tests.

15 years agomsi: Remove an unused field from the string table.
Henri Verbeet [Wed, 16 Dec 2009 18:55:59 +0000 (19:55 +0100)] 
msi: Remove an unused field from the string table.

15 years agowined3d: Cleanup IWineD3DDeviceImpl_GetBackBuffer().
Henri Verbeet [Wed, 16 Dec 2009 18:55:58 +0000 (19:55 +0100)] 
wined3d: Cleanup IWineD3DDeviceImpl_GetBackBuffer().

15 years agowined3d: Change an ERR to a WARN in IWineD3DVolumeImpl_UnlockBox().
Henri Verbeet [Wed, 16 Dec 2009 18:55:57 +0000 (19:55 +0100)] 
wined3d: Change an ERR to a WARN in IWineD3DVolumeImpl_UnlockBox().

Trying to unlock a volume that isn't locked is questionable behaviour on the
side of the application, but not an internal error.

15 years agowined3d: Change an ERR to a TRACE in IWineD3DEventQueryImpl_GetData().
Henri Verbeet [Wed, 16 Dec 2009 18:55:56 +0000 (19:55 +0100)] 
wined3d: Change an ERR to a TRACE in IWineD3DEventQueryImpl_GetData().

This is allowed behaviour.

15 years agoddraw/tests: Add tests for ddraw window proc handling.
Henri Verbeet [Wed, 16 Dec 2009 18:55:55 +0000 (19:55 +0100)] 
ddraw/tests: Add tests for ddraw window proc handling.

15 years agoinetcomm: Remove an unneeded variable.
Amine Khaldi [Wed, 16 Dec 2009 17:57:38 +0000 (18:57 +0100)] 
inetcomm: Remove an unneeded variable.

15 years agocryptdlg: Remove an unused variable.
Amine Khaldi [Wed, 16 Dec 2009 17:39:47 +0000 (18:39 +0100)] 
cryptdlg: Remove an unused variable.

15 years agocrypt32: Remove an unneeded assignment.
Amine Khaldi [Wed, 16 Dec 2009 17:19:15 +0000 (18:19 +0100)] 
crypt32: Remove an unneeded assignment.

15 years agourlmon: Added tests for CoInternetGetSecurityUrl.
Piotr Caban [Wed, 16 Dec 2009 15:35:03 +0000 (16:35 +0100)] 
urlmon: Added tests for CoInternetGetSecurityUrl.

15 years agontdll/tests: Fix a memory leak (Valgrind).
Paul Vriens [Wed, 16 Dec 2009 15:14:02 +0000 (16:14 +0100)] 
ntdll/tests: Fix a memory leak (Valgrind).

15 years agoserver: Set the idle event when retrieving a timer message.
Alexandre Julliard [Wed, 16 Dec 2009 17:18:07 +0000 (18:18 +0100)] 
server: Set the idle event when retrieving a timer message.

15 years agoserver: Don't set the idle event when waiting for a message reply.
Alexandre Julliard [Wed, 16 Dec 2009 16:32:15 +0000 (17:32 +0100)] 
server: Don't set the idle event when waiting for a message reply.

15 years agoserver: Any thread can set the idle event, don't treat the first one differently.
Alexandre Julliard [Wed, 16 Dec 2009 16:25:01 +0000 (17:25 +0100)] 
server: Any thread can set the idle event, don't treat the first one differently.

15 years agoserver: Don't reset the idle event when the client stops waiting.
Alexandre Julliard [Wed, 16 Dec 2009 16:22:34 +0000 (17:22 +0100)] 
server: Don't reset the idle event when the client stops waiting.

15 years agoserver: Don't set the idle event when a queue is destroyed, instead return success...
Alexandre Julliard [Wed, 16 Dec 2009 16:20:46 +0000 (17:20 +0100)] 
server: Don't set the idle event when a queue is destroyed, instead return success in WaitForInputIdle on process exit.

15 years agouser32/tests: Always reset events when starting a WaitForInputIdle test.
Alexandre Julliard [Wed, 16 Dec 2009 16:50:24 +0000 (17:50 +0100)] 
user32/tests: Always reset events when starting a WaitForInputIdle test.

15 years agontdll/tests: Fix a test failure on NT4/W2K.
Paul Vriens [Wed, 16 Dec 2009 13:48:52 +0000 (14:48 +0100)] 
ntdll/tests: Fix a test failure on NT4/W2K.

15 years agocryptnet/tests: Fix some test failures on W2K with just SP3 or SP4.
Paul Vriens [Wed, 16 Dec 2009 13:00:01 +0000 (14:00 +0100)] 
cryptnet/tests: Fix some test failures on W2K with just SP3 or SP4.

15 years agomsvcrtd: Remove unnecessary trace output.
André Hentschel [Wed, 16 Dec 2009 14:24:20 +0000 (15:24 +0100)] 
msvcrtd: Remove unnecessary trace output.

15 years agoclusapi: Don't trace the contents of output pointers.
Andrew Nguyen [Wed, 16 Dec 2009 11:36:55 +0000 (05:36 -0600)] 
clusapi: Don't trace the contents of output pointers.

The issue was detected with Valgrind.

15 years agouser32: Add a Wow handler for the mdi client class.
Alexandre Julliard [Wed, 16 Dec 2009 12:22:08 +0000 (13:22 +0100)] 
user32: Add a Wow handler for the mdi client class.

15 years agomsi: Replace the string table hash with a sorted index.
Hans Leidekker [Wed, 16 Dec 2009 10:11:45 +0000 (11:11 +0100)] 
msi: Replace the string table hash with a sorted index.

15 years agomsi: Clone the open stream instead of trying to open a stream again.
Hans Leidekker [Wed, 16 Dec 2009 10:11:19 +0000 (11:11 +0100)] 
msi: Clone the open stream instead of trying to open a stream again.

15 years agoinclude: Add endpointvolume.idl.
Maarten Lankhorst [Wed, 16 Dec 2009 09:36:03 +0000 (10:36 +0100)] 
include: Add endpointvolume.idl.

15 years agourlmon: Added CoInternetGetSecurityUrl implementation.
Piotr Caban [Tue, 15 Dec 2009 22:48:23 +0000 (23:48 +0100)] 
urlmon: Added CoInternetGetSecurityUrl implementation.

15 years agourlmon: Added PARSE_ROOTDOCUMENT to CoInternetParseUrl.
Piotr Caban [Tue, 15 Dec 2009 22:48:09 +0000 (23:48 +0100)] 
urlmon: Added PARSE_ROOTDOCUMENT to CoInternetParseUrl.

15 years agourlmon: Added PARSE_DOMAIN to CoInternetParseUrl.
Piotr Caban [Tue, 15 Dec 2009 22:47:52 +0000 (23:47 +0100)] 
urlmon: Added PARSE_DOMAIN to CoInternetParseUrl.

15 years agoshlwapi: Added special case for URL_PART_HOSTNAME in UrlGetPart.
Piotr Caban [Tue, 15 Dec 2009 22:47:36 +0000 (23:47 +0100)] 
shlwapi: Added special case for URL_PART_HOSTNAME in UrlGetPart.

15 years agoshlwapi: Allow ' ' in hostname and password in UrlGetPart.
Piotr Caban [Tue, 15 Dec 2009 22:47:17 +0000 (23:47 +0100)] 
shlwapi: Allow ' ' in hostname and password in UrlGetPart.

15 years agomshtml: Added IElementBehavior{Site,Factory} to idl file.
Piotr Caban [Tue, 15 Dec 2009 22:47:00 +0000 (23:47 +0100)] 
mshtml: Added IElementBehavior{Site,Factory} to idl file.

15 years agooleaut32: Fix SysReAllocStringLen implementation.
Piotr Caban [Tue, 15 Dec 2009 22:46:42 +0000 (23:46 +0100)] 
oleaut32: Fix SysReAllocStringLen implementation.

15 years agomshtml: Added IObjectWithSite stubs.
Piotr Caban [Tue, 15 Dec 2009 22:46:24 +0000 (23:46 +0100)] 
mshtml: Added IObjectWithSite stubs.

15 years agomshtml: Added ViewObjectEx stub implementation.
Piotr Caban [Tue, 15 Dec 2009 22:45:34 +0000 (23:45 +0100)] 
mshtml: Added ViewObjectEx stub implementation.

15 years agowined3d: Fix VBO buffer usage.
Stefan Dösinger [Sat, 28 Nov 2009 10:38:29 +0000 (11:38 +0100)] 
wined3d: Fix VBO buffer usage.

15 years agowined3d: Don't render single buffered swapchains to a FBO.
Stefan Dösinger [Tue, 15 Dec 2009 19:16:19 +0000 (20:16 +0100)] 
wined3d: Don't render single buffered swapchains to a FBO.

15 years agosetupapi: Add stub for CM_Get_Device_ID_ExW.
Vladimir Pankratov [Tue, 15 Dec 2009 16:46:59 +0000 (21:46 +0500)] 
setupapi: Add stub for CM_Get_Device_ID_ExW.

15 years agodsound: Remove refcounting in classfactory.
Maarten Lankhorst [Tue, 15 Dec 2009 14:39:14 +0000 (15:39 +0100)] 
dsound: Remove refcounting in classfactory.

15 years agommdevapi: Add class factory.
Maarten Lankhorst [Tue, 15 Dec 2009 14:35:18 +0000 (15:35 +0100)] 
mmdevapi: Add class factory.

15 years agouser32/tests: Fix a number of message test failures on various Windows boxes.
Alexandre Julliard [Wed, 16 Dec 2009 11:28:41 +0000 (12:28 +0100)] 
user32/tests: Fix a number of message test failures on various Windows boxes.

15 years agoriched20: Initialise window size.
Huw Davies [Wed, 16 Dec 2009 10:34:01 +0000 (10:34 +0000)] 
riched20: Initialise window size.

Found by Valgrind.

15 years agoshell32: Fix a memory leak in the tests.
Huw Davies [Wed, 16 Dec 2009 10:21:55 +0000 (10:21 +0000)] 
shell32: Fix a memory leak in the tests.

Found by Valgrind.

15 years agooleaut32: Fix a memory leak.
Huw Davies [Wed, 16 Dec 2009 10:08:18 +0000 (10:08 +0000)] 
oleaut32: Fix a memory leak.

Found by Valgrind.

15 years agooleaut32: Fix memory leaks in the tests.
Huw Davies [Wed, 16 Dec 2009 09:56:54 +0000 (09:56 +0000)] 
oleaut32: Fix memory leaks in the tests.

Found by Valgrind.

15 years agogdiplus/tests: Fix some test failures on older gdiplus.
Paul Vriens [Wed, 16 Dec 2009 08:48:47 +0000 (09:48 +0100)] 
gdiplus/tests: Fix some test failures on older gdiplus.

15 years agorpcrt4/tests: Skip more tests on Win9x/WinMe.
Paul Vriens [Wed, 16 Dec 2009 08:09:01 +0000 (09:09 +0100)] 
rpcrt4/tests: Skip more tests on Win9x/WinMe.

15 years agorpcrt4/tests: Don't crash on NT4.
Paul Vriens [Wed, 16 Dec 2009 08:00:30 +0000 (09:00 +0100)] 
rpcrt4/tests: Don't crash on NT4.

15 years agowinspool: Add tests for paths returned in GetPrinterDriver.
Jeremy White [Wed, 16 Dec 2009 02:33:45 +0000 (20:33 -0600)] 
winspool: Add tests for paths returned in GetPrinterDriver.

15 years agomsi: Free the temp buffer if we haven't assigned it to *appValue.
James Hawkins [Wed, 16 Dec 2009 02:19:31 +0000 (18:19 -0800)] 
msi: Free the temp buffer if we haven't assigned it to *appValue.

15 years agomsi: Refactor freeing the import sql strings.
James Hawkins [Wed, 16 Dec 2009 02:19:25 +0000 (18:19 -0800)] 
msi: Refactor freeing the import sql strings.

15 years agomsi: Simplify ITERATE_WriteEnvironmentString.
James Hawkins [Wed, 16 Dec 2009 02:19:19 +0000 (18:19 -0800)] 
msi: Simplify ITERATE_WriteEnvironmentString.

Now we only allocate enough memory to exactly match the size of the
constructed string. Before, we were leaving some memory uninitialized
and overwriting the allocated memory in certain circum.

15 years agomsi: Free the columns view if check_column_exists fails.
James Hawkins [Wed, 16 Dec 2009 02:19:03 +0000 (18:19 -0800)] 
msi: Free the columns view if check_column_exists fails.

15 years agomsi: Fix a leaking record handle.
James Hawkins [Wed, 16 Dec 2009 02:18:47 +0000 (18:18 -0800)] 
msi: Fix a leaking record handle.

15 years agomsi: Free the join view if we fail to create the table view.
James Hawkins [Wed, 16 Dec 2009 02:18:40 +0000 (18:18 -0800)] 
msi: Free the join view if we fail to create the table view.

15 years agomsi: Keep track of the current view in the sql parser.
James Hawkins [Wed, 16 Dec 2009 02:18:31 +0000 (18:18 -0800)] 
msi: Keep track of the current view in the sql parser.

This allows us to free said view in the case of a syntax error. This
also allows us to get rid of a few places where we tried to clean up
the view ourselves in the parsing code.

15 years agoole32: Add a cache for block chain streams in StorageImpl.
Vincent Povirk [Tue, 15 Dec 2009 20:44:49 +0000 (14:44 -0600)] 
ole32: Add a cache for block chain streams in StorageImpl.

15 years agoole32: Fix several memory leaks in the tests.
Huw Davies [Tue, 15 Dec 2009 21:04:42 +0000 (21:04 +0000)] 
ole32: Fix several memory leaks in the tests.

Found by Valgrind.

15 years agomshtml: Added support for redirected binding.
Jacek Caban [Tue, 15 Dec 2009 20:16:59 +0000 (21:16 +0100)] 
mshtml: Added support for redirected binding.

15 years agourlmon: Report redirected URL to object created by BindToObject.
Jacek Caban [Tue, 15 Dec 2009 20:16:35 +0000 (21:16 +0100)] 
urlmon: Report redirected URL to object created by BindToObject.

15 years agourlmon: Added HTTP redirecting test.
Jacek Caban [Tue, 15 Dec 2009 20:16:17 +0000 (21:16 +0100)] 
urlmon: Added HTTP redirecting test.

15 years agourlmon: Correctly handle INTERNET_STATUS_REDIRECT.
Jacek Caban [Tue, 15 Dec 2009 20:16:00 +0000 (21:16 +0100)] 
urlmon: Correctly handle INTERNET_STATUS_REDIRECT.

15 years agourlmon: Correctly handle accept ranges in HttpProtocol_open_request.
Jacek Caban [Tue, 15 Dec 2009 20:15:45 +0000 (21:15 +0100)] 
urlmon: Correctly handle accept ranges in HttpProtocol_open_request.

15 years agourlmon: Added support for BINDSTATUS_REDIRECTING.
Jacek Caban [Tue, 15 Dec 2009 20:15:28 +0000 (21:15 +0100)] 
urlmon: Added support for BINDSTATUS_REDIRECTING.

15 years agourlmon: Pass flags to test_BindToStorage.
Jacek Caban [Tue, 15 Dec 2009 20:15:08 +0000 (21:15 +0100)] 
urlmon: Pass flags to test_BindToStorage.

15 years agowined3d: Mark the draw buffer as dirty in context_create().
Henri Verbeet [Tue, 15 Dec 2009 16:51:37 +0000 (17:51 +0100)] 
wined3d: Mark the draw buffer as dirty in context_create().

Currently callers of this function are responsible for setting the draw buffer
correctly, but they don't do a very good job:
  - swapchain_init() sets the draw buffer to GL_BACK if there's a back buffer,
    even though the context's target is always the front buffer.
  - swapchain_create_context_for_thread() depends on (eventually) being called
    by FindContext().
  - create_primary_opengl_context() and
    IWineD3DSwapChainImpl_SetDestWindowOverride() don't bother setting a draw
    buffer at all.
Just marking the draw buffer dirty lets the context management sort it all
out, and is much simpler.

15 years agowined3d: Get rid of the "swapchain" parameter to surface_get_gl_buffer().
Henri Verbeet [Tue, 15 Dec 2009 16:51:36 +0000 (17:51 +0100)] 
wined3d: Get rid of the "swapchain" parameter to surface_get_gl_buffer().

Casting the container to "IWineD3DSwapChainImpl *" is always safe when
SFLAG_SWAPCHAIN is set on the surface. Most callers don't have a real
need for the swapchain, and end up calling GetContainer() just to pass
it to surface_get_gl_buffer().

15 years agowined3d: Use surface_is_offscreen() in flush_to_framebuffer_drawpixels().
Henri Verbeet [Tue, 15 Dec 2009 16:51:35 +0000 (17:51 +0100)] 
wined3d: Use surface_is_offscreen() in flush_to_framebuffer_drawpixels().

15 years agowined3d: Use surface_is_offscreen() in read_from_framebuffer_texture().
Henri Verbeet [Tue, 15 Dec 2009 16:51:34 +0000 (17:51 +0100)] 
wined3d: Use surface_is_offscreen() in read_from_framebuffer_texture().

15 years agowined3d: Use surface_is_offscreen() in fb_copy_to_texture_hwstretch().
Henri Verbeet [Tue, 15 Dec 2009 16:51:33 +0000 (17:51 +0100)] 
wined3d: Use surface_is_offscreen() in fb_copy_to_texture_hwstretch().

15 years agocrypt32: Remove unneeded assignments.
Amine Khaldi [Tue, 15 Dec 2009 16:23:10 +0000 (17:23 +0100)] 
crypt32: Remove unneeded assignments.

15 years agowinedbg: Fix Norwegian translation warning by adding UTF-8 pragma.
Nicolas Le Cam [Tue, 15 Dec 2009 17:52:48 +0000 (18:52 +0100)] 
winedbg: Fix Norwegian translation warning by adding UTF-8 pragma.

15 years agodbghelp: Fix compilation on OSX.
Huw Davies [Tue, 15 Dec 2009 17:27:53 +0000 (17:27 +0000)] 
dbghelp: Fix compilation on OSX.

15 years agowininet: Set error and fail if a secure connection's certificate couldn't be verified.
Juan Lang [Tue, 15 Dec 2009 00:02:33 +0000 (16:02 -0800)] 
wininet: Set error and fail if a secure connection's certificate couldn't be verified.

15 years agowininet: Return error directly from netconn_verify_cert.
Juan Lang [Mon, 14 Dec 2009 23:58:44 +0000 (15:58 -0800)] 
wininet: Return error directly from netconn_verify_cert.

15 years agouser32: Move the 16-bit message mapping functions to msg16.c.
Alexandre Julliard [Tue, 15 Dec 2009 19:18:47 +0000 (20:18 +0100)] 
user32: Move the 16-bit message mapping functions to msg16.c.

15 years agouser32: Move 16-bit winproc functions to msg16.c.
Alexandre Julliard [Tue, 15 Dec 2009 19:01:38 +0000 (20:01 +0100)] 
user32: Move 16-bit winproc functions to msg16.c.

15 years agouser32: Store the 16-bit winproc in a different array from the 32-bit A/W ones.
Alexandre Julliard [Tue, 15 Dec 2009 19:11:16 +0000 (20:11 +0100)] 
user32: Store the 16-bit winproc in a different array from the 32-bit A/W ones.

15 years agouser32: Move more 16-bit winproc functions inside the i386 ifdef.
Alexandre Julliard [Tue, 15 Dec 2009 19:09:04 +0000 (20:09 +0100)] 
user32: Move more 16-bit winproc functions inside the i386 ifdef.

15 years agoqedit: Fix a memory leak.
Huw Davies [Tue, 15 Dec 2009 15:20:29 +0000 (15:20 +0000)] 
qedit: Fix a memory leak.

Found by Valgrind.

15 years agooleaut32: Fix a leak in the tests.
Huw Davies [Tue, 15 Dec 2009 15:17:22 +0000 (15:17 +0000)] 
oleaut32: Fix a leak in the tests.

Found by Valgrind.

15 years agooleaut32: Fix a memory leak in the tests.
Huw Davies [Tue, 15 Dec 2009 12:26:37 +0000 (12:26 +0000)] 
oleaut32: Fix a memory leak in the tests.

Found by Valgrind.

15 years agouser32: Add 16-bit translation for parameters of the WM_H/VSCROLL edit messages.
Alexandre Julliard [Tue, 15 Dec 2009 12:22:45 +0000 (13:22 +0100)] 
user32: Add 16-bit translation for parameters of the WM_H/VSCROLL edit messages.

15 years agouser32: Turn the static winproc into a Wow handler.
Alexandre Julliard [Tue, 15 Dec 2009 12:19:53 +0000 (13:19 +0100)] 
user32: Turn the static winproc into a Wow handler.

15 years agouser32: Turn the scrollbar winproc into a Wow handler.
Alexandre Julliard [Tue, 15 Dec 2009 12:19:30 +0000 (13:19 +0100)] 
user32: Turn the scrollbar winproc into a Wow handler.

15 years agouser32: Turn the edit winproc into a Wow handler.
Alexandre Julliard [Tue, 15 Dec 2009 12:19:03 +0000 (13:19 +0100)] 
user32: Turn the edit winproc into a Wow handler.

15 years agouser32: Turn the listbox winproc into a Wow handler.
Alexandre Julliard [Tue, 15 Dec 2009 12:18:28 +0000 (13:18 +0100)] 
user32: Turn the listbox winproc into a Wow handler.

15 years agouser32: Turn the combobox winproc into a Wow handler.
Alexandre Julliard [Tue, 15 Dec 2009 12:17:15 +0000 (13:17 +0100)] 
user32: Turn the combobox winproc into a Wow handler.

15 years agouser32: Implement UserRegisterWowHandlers function and add a handler for the button...
Alexandre Julliard [Tue, 15 Dec 2009 12:16:50 +0000 (13:16 +0100)] 
user32: Implement UserRegisterWowHandlers function and add a handler for the button winproc.

15 years agomshtml: Implement IHTMLImgElement get_Name.
Alistair Leslie-Hughes [Sun, 13 Dec 2009 10:15:28 +0000 (21:15 +1100)] 
mshtml: Implement IHTMLImgElement get_Name.

15 years agowined3d: Properly release client storage memory.
Stefan Dösinger [Tue, 15 Dec 2009 10:25:14 +0000 (11:25 +0100)] 
wined3d: Properly release client storage memory.

15 years agows2_32: Fix allocating a hostent with no h_aliases list.
Erich Hoover [Mon, 14 Dec 2009 15:30:14 +0000 (08:30 -0700)] 
ws2_32: Fix allocating a hostent with no h_aliases list.

15 years agoriched20: Initialise the style flags.
Huw Davies [Tue, 15 Dec 2009 11:52:02 +0000 (11:52 +0000)] 
riched20: Initialise the style flags.

Found by Valgrind.

15 years agogdiplus: Fix a memory leak in the tests.
Huw Davies [Tue, 15 Dec 2009 11:35:19 +0000 (11:35 +0000)] 
gdiplus: Fix a memory leak in the tests.

Found by Valgrind.

15 years agogdiplus: Fix a memory leak in the tests.
Huw Davies [Tue, 15 Dec 2009 11:32:58 +0000 (11:32 +0000)] 
gdiplus: Fix a memory leak in the tests.

Found by Valgrind.