Properly null-terminate strings in measures2csv.
Fix abundant memory leaks in measures2csv.
Merge pull request #338 from asfadmin/seaice

Fix memory leaks and buffer overflows in measures2csv.