Skip to content

Commit 0dcab0b

Browse files
committed
Backported #441 to cpp-1.4.
Fixed a pointer operation problem at msgpack::zone::chunk_list::clear(). It was only happened on C++03.
1 parent 7df9671 commit 0dcab0b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

erb/cpp03_zone.hpp.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class zone {
125125
::free(c);
126126
c = n;
127127
} else {
128+
m_head = c;
128129
break;
129130
}
130131
}

include/msgpack/detail/cpp03_zone.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class zone {
125125
::free(c);
126126
c = n;
127127
} else {
128+
m_head = c;
128129
break;
129130
}
130131
}

0 commit comments

Comments
 (0)