Unverified Commit c9ad2506 by Patrick Steinhardt Committed by GitHub

Merge pull request #4751 from nelhage/config-double-free

Fix a double-free in config parsing
parents 64138b70 b8a67eda
......@@ -433,6 +433,7 @@ static int parse_variable(git_config_parser *reader, char **var_name, char **var
if (multiline) {
git_buf multi_value = GIT_BUF_INIT;
git_buf_attach(&multi_value, value, 0);
value = NULL;
if (parse_multiline_variable(reader, &multi_value, quote_count) < 0 ||
git_buf_oom(&multi_value)) {
......
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