Commit f3aa0dfd authored by Tobias Mayer's avatar Tobias Mayer

Fix leak in node_id::deserialize()

parent 5d6cda55
......@@ -213,7 +213,7 @@ error node_id::deserialize(deserializer& source) {
}
if (impl == atom("default")) {
if (data_ == nullptr || data_->implementation_id() != atom("default"))
data_.reset(new default_data);
data_.reset(new default_data, false);
return data_->deserialize(source);
}
return sec::unknown_type;
......
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