From fe229d1df0da1d730340e559bc01fbb829e49745 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Sat, 12 Mar 2016 11:39:38 +0900 Subject: [PATCH] Fixed #440. Fixed a pointer operation problem at msgpack::zone::chunk_list::clear(). It was only happened on C++03. --- erb/v1/cpp03_zone.hpp.erb | 1 + include/msgpack/v1/detail/cpp03_zone.hpp | 1 + 2 files changed, 2 insertions(+) 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; } }