MemoryReadStream is common ScummVM code and it seems to be used solely together with malloc() in ScummVM.