that allocates and deallocates a single layer mask used by the tech reader. Decided to work around the issue just by allocating it only once and not releasing it---it's just a few bytes.