Skip to content

Commit 035bfeb

Browse files
committed
fix zone::chunk_list::clear
1 parent 04292fe commit 035bfeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/msgpack/v1/detail/cpp11_zone.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ class zone {
7878
other.m_head = MSGPACK_NULLPTR;
7979
return *this;
8080
}
81-
finalizer* m_head;
8281

8382
private:
83+
finalizer* m_head;
8484
finalizer_array(const finalizer_array&);
8585
finalizer_array& operator=(const finalizer_array&);
8686
};
@@ -106,7 +106,7 @@ class zone {
106106
::free(c);
107107
c = n;
108108
}
109-
m_head->m_next = MSGPACK_NULLPTR;
109+
m_head = MSGPACK_NULLPTR;
110110
m_free = chunk_size;
111111
m_ptr = ptr;
112112
}

0 commit comments

Comments
 (0)