fixes a memory leak issue in xtc read.