diff --git a/src/unpack.c b/src/unpack.c index 93a8d7c3..7af4e65d 100644 --- a/src/unpack.c +++ b/src/unpack.c @@ -492,6 +492,10 @@ void msgpack_unpacker_reset(msgpack_unpacker* mpac) msgpack_unpack_return msgpack_unpacker_next(msgpack_unpacker* mpac, msgpack_unpacked* result) { + if(result->zone != NULL) { + msgpack_zone_free(result->zone); + } + int ret = msgpack_unpacker_execute(mpac); if(ret < 0) {