Fix memory leak in Host.
Merge branch 'release_31' into development

Fix memory leak in Host.