MacPorts: fewer leaks if duplicating strings while scanning PortIndex