It is shown in the anime that the jinchuruki is caught and the tailed beast is extracted and sealed into the Demonic statue by the Akatsuki. What will happen if the jinchuruki is killed somewhere else? In search for Tsunade arc, during the fight between Jiraiya-Tsunade and Orochimaru, Orochimaru tries to kill Naruto as he is the jinchuruki of the nine tails. What would have happened to the nine tails if he had killed Naruto?
After a period of time the tailed beast will revive, so they will survive the death of the host.
However, it is revealed that the tailed beasts can actually survive their jinchūriki's deaths, with the only consequence being that it will take time for them to revive without a host.
Source: Narutopedia - in the second paragraph of that section.
if the jinchuriki dies so will the beast but the beast will be reancarnated and HOPEFULLY put into a new host that's what happens each and every time.
If the jinchuriki dies, the tailed beast will revive and it will be free unless it is sealed away in a new body.
Some of the information contained in this post requires additional references. Please edit to add citations to reliable sources that support the assertions made here. Unsourced material may be disputed or deleted.