Commit 74c3a4a7 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

winecfg: Fix a leak when applying drive changes (Coverity).

parent 7ca31b81
...@@ -367,6 +367,7 @@ void apply_drive_changes(void) ...@@ -367,6 +367,7 @@ void apply_drive_changes(void)
} }
else WINE_WARN( "failed to set drive %c: to %s type %u err %u\n", 'a' + i, else WINE_WARN( "failed to set drive %c: to %s type %u err %u\n", 'a' + i,
wine_dbgstr_a(drives[i].unixpath), drives[i].type, GetLastError() ); wine_dbgstr_a(drives[i].unixpath), drives[i].type, GetLastError() );
HeapFree( GetProcessHeap(), 0, ioctl );
} }
CloseHandle( mgr ); CloseHandle( mgr );
} }
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