Cleanup leaks in a few examples.