Skip to content

Commit 38b8525

Browse files
committed
config: Fix a leak parsing multi-line config entries
1 parent a03113e commit 38b8525

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config_parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ static int parse_multiline_variable(git_config_parser *reader, git_buf *value, i
338338

339339
/* If it was just a comment, pretend it didn't exist */
340340
if (line[0] == '\0') {
341+
git__free(line);
341342
in_quotes = quote_count;
342343
continue;
343344
}

0 commit comments

Comments
 (0)