- Add a function to free the timezone database - Use setenv rather than putenv - Add various missing free() calls