Fixed memory errors in sasalib_link_coord.