Bug fix in Tny_free.