diff --git a/erb/v1/cpp03_zone.hpp.erb b/erb/v1/cpp03_zone.hpp.erb index 88fe00d8..112a49e3 100644 --- a/erb/v1/cpp03_zone.hpp.erb +++ b/erb/v1/cpp03_zone.hpp.erb @@ -113,6 +113,7 @@ class zone { ::free(c); c = n; } else { + m_head = c; break; } } diff --git a/include/msgpack/v1/detail/cpp03_zone.hpp b/include/msgpack/v1/detail/cpp03_zone.hpp index d469482c..3e712de8 100644 --- a/include/msgpack/v1/detail/cpp03_zone.hpp +++ b/include/msgpack/v1/detail/cpp03_zone.hpp @@ -113,6 +113,7 @@ class zone { ::free(c); c = n; } else { + m_head = c; break; } }