Set some pointers to null after they are freed.  I still think that the way GMT is trying to free data that does not belong to it is bugged.