Delete mysql-settings after connecting

Why should we keep the password in memory when we do not need it?