Fix memory leaks

The object allocated by Accounts::Manager::account() needs to be deleted by the caller.