In the event of death, the deceased's bank accounts are closed by the bank. Before that, any remaining money will be paid out in line with what was requested in their will, which is a legally binding document outlining who gets the deceased's assets following death.
If there is no will, ownership of the account and its assets will be transferred to the next of kin or estate administrator. It's important to note that any credit card debt or personal loan debt will be paid from the deceased's bank and savings accounts before the account administrator takes control of any assets.
If you don't yet have a will created, you can get started making a will on the Service NSW website online.