open_memstream -> new_memstream