diff --git a/python/msgpack/_msgpack.pyx b/python/msgpack/_msgpack.pyx index 5afa961a..0dd926fa 100644 --- a/python/msgpack/_msgpack.pyx +++ b/python/msgpack/_msgpack.pyx @@ -299,6 +299,7 @@ cdef class Unpacker(object): buf_size = new_size memcpy(buf + tail, (_buf), _buf_len) + self.buf = buf self.buf_head = head self.buf_size = buf_size self.buf_tail = tail + _buf_len