From 0dcab0b2b17c6e1625b036a567013241cb25025b Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Wed, 18 May 2016 19:21:52 +0900 Subject: [PATCH] Backported #441 to cpp-1.4. Fixed a pointer operation problem at msgpack::zone::chunk_list::clear(). It was only happened on C++03. --- erb/cpp03_zone.hpp.erb | 1 + include/msgpack/detail/cpp03_zone.hpp | 1 + 2 files changed, 2 insertions(+) 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; } }