Clear passwords from memory

To avoid leaks, passwords should be deleted from the memory once they are no
longer used.
