Release memory allocated for Direct memory read, fix issues with reading dictionary encoded var length data