Avoid SEGV and double free introduced by patch 30ad01b9 (set host).
Update notes on segv/double free patch.