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