On a certain local martingale in a general diffusion setting