Commit 6ac68936 authored by Lionel Debroux's avatar Lionel Debroux Committed by Alexandre Julliard

winedevice: Fix memory leak (found by Smatch).

parent b9860a9b
......@@ -118,6 +118,7 @@ static BOOL load_driver(void)
if (RegOpenKeyW( HKEY_LOCAL_MACHINE, str + 18 /* skip \registry\machine */, &driver_hkey ))
{
WINE_ERR( "cannot open key %s, err=%u\n", wine_dbgstr_w(str), GetLastError() );
HeapFree( GetProcessHeap(), 0, str);
return FALSE;
}
RtlInitUnicodeString( &keypath, str );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment