Commit 28fe23e7 authored by Dominik Charousset's avatar Dominik Charousset

Fix memory leak in node_id::deserialize

parent c682b8cb
......@@ -163,7 +163,7 @@ void node_id::serialize(serializer& sink) const {
void node_id::deserialize(deserializer& source) {
if (! data_ || ! data_->unique())
data_.reset(new data);
data_ = make_counted<data>();
source.read_raw(node_id::host_id_size, data_->host_.data());
data_->pid_ = source.read<uint32_t>();
auto is_zero = [](uint8_t value) { return value == 0; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment