fix memory leak in deduping