Fix a memory management bug in apply_drive_changes to stop winecfg