plug memory leak in 3way merge test