Skip to content

Commit fe229d1

Browse files
committed
Fixed #440.
Fixed a pointer operation problem at msgpack::zone::chunk_list::clear(). It was only happened on C++03.
1 parent b5b865a commit fe229d1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

erb/v1/cpp03_zone.hpp.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class zone {
113113
::free(c);
114114
c = n;
115115
} else {
116+
m_head = c;
116117
break;
117118
}
118119
}

include/msgpack/v1/detail/cpp03_zone.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class zone {
113113
::free(c);
114114
c = n;
115115
} else {
116+
m_head = c;
116117
break;
117118
}
118119
}

0 commit comments

Comments
 (0)