Changed lock_accesses allocation to new - does not fix the corruption error, but uncommenting the 2nd free does