diff --git a/erb/cpp03_zone.hpp.erb b/erb/cpp03_zone.hpp.erb index e62eabb3d..ba5400c76 100644 --- a/erb/cpp03_zone.hpp.erb +++ b/erb/cpp03_zone.hpp.erb @@ -125,6 +125,7 @@ class zone { ::free(c); c = n; } else { + m_head = c; break; } } diff --git a/include/msgpack/detail/cpp03_zone.hpp b/include/msgpack/detail/cpp03_zone.hpp index e84fae352..fe885b737 100644 --- a/include/msgpack/detail/cpp03_zone.hpp +++ b/include/msgpack/detail/cpp03_zone.hpp @@ -125,6 +125,7 @@ class zone { ::free(c); c = n; } else { + m_head = c; break; } }