Fixed issue with double-free not being reported if it is the last action
recorded