fixes missing frees in case of abnormal return in read_gauge
Merge pull request #286 from urbach/FixMissingFree

fixes missing frees in case of abnormal return in read_gauge