Fix memory leaks related to get_asf_tmp_dir() and get_asf_share_dir().

You're absolutely right. In fact, measures2csv calls read_proj_file() thousands of times. Tomorrow we can discuss potential resolutions.