config: Fix a leak parsing multi-line config entries (cherry picked from commit 38b852558eb518f96c313cdcd9ce5a7af6ded194)
diff --git a/src/config_parse.c b/src/config_parse.c
index 988a75a..ec09f3e 100644
--- a/src/config_parse.c
+++ b/src/config_parse.c
@@ -338,6 +338,7 @@ static int parse_multiline_variable(git_config_parser *reader, git_buf *value, i
/* If it was just a comment, pretend it didn't exist */
if (line[0] == '\0') {
+ git__free(line);
in_quotes = quote_count;
continue;
}