Always leave salary will be computed based on Basic salary only, because u have already enjoyed HRA while working, and if they pay you alongwith the leave settlement then dont u think they are paying the HRA again.

So logically it should be computed on basic salary only