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

This commit is contained in:
Nikolay Sivov 2015-06-27 23:14:11 +03:00 committed by Alexandre Julliard
parent 7ca31b8119
commit 74c3a4a7e7
1 changed files with 1 additions and 0 deletions

View File

@ -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 );
} }