This will depend on who bought the ticket. If it was you, just cancel. No problem.
If it was the deceased, using the deceased's credit card, this would be an issue. You are not that person, so you cannot cancel the flight. What you will need to do is get a death certificate and demonstrate your power of attorney. Or get a probate court to dismiss the debt.