Spontaneous flight from eastern borderlands of the Second Polish Republic occurred during the Massacres of Poles in Volhynia and Eastern Galicia lasting until the end of 1944. Most Poles who survived World War II on Soviet territory left in accordance with the Polish-Soviet repatriation agreements. It was the final wave of mass migrations, referred to as the Polish population transfers (1944–46) in the aftermath of Allied victory over Germany. The displacement followed the Curzon Line accepted by the US administration and UK government during the Teheran, Yalta and Potsdam meetings with the Soviet leaders. Although not invited to participate in the multilateral talks, new Poland was assigned the so-called Recovered Territories as compensation for the loss of the eastern half of its prewar territory to the Soviets.