8fef4e865f
Re-structure the loop looking for duplicates a little so that we only have a single free of the string that happens regardless of whether we found a duplicate or not. This was Coverity CID 1288090