tdb2: close memory leak in traverse.