Fixed data access after free.