DescriptionFix memory leak and crash when parsing baked-in configs in domain reliability monitor.
Invalid baked-in configs would be leaked (in FromJSON) and then crash
due to a null deref (in AddContext).
This change also makes two minor improvements:
- pass scoped_refptrs by const ref
- use a StringPiece rather than a std::string when parsing bake-in configs
BUG=460483
R=ttuttle@chromium.org
Committed: https://crrev.com/2792ed71482cd849ebf312fb02c93efec01f62f5
Cr-Commit-Position: refs/heads/master@{#317375}
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|