This is a potential bug: pinned buffers must not be released until it is guaranteed that no further operations will be made that use those buffers.