Fix use after free in BinaryStream library.