Show how to free resources in example.