Commit c18c913c by Nelson Elhage Committed by Patrick Steinhardt

config: Fix a leak parsing multi-line config entries

(cherry picked from commit 38b85255)
parent da70156e
...@@ -1369,6 +1369,7 @@ static int parse_multiline_variable(struct reader *reader, git_buf *value, int i ...@@ -1369,6 +1369,7 @@ static int parse_multiline_variable(struct reader *reader, git_buf *value, int i
/* If it was just a comment, pretend it didn't exist */ /* If it was just a comment, pretend it didn't exist */
if (line[0] == '\0') { if (line[0] == '\0') {
git__free(line);
in_quotes = quote_count; in_quotes = quote_count;
continue; continue;
} }
......
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