summaryrefslogtreecommitdiff
path: root/src/config_parse.c
diff options
context:
space:
mode:
authorNelson Elhage <nelhage@nelhage.com>2018-09-01 03:50:26 +0000
committerNelson Elhage <nelhage@nelhage.com>2018-09-01 03:50:26 +0000
commit38b852558eb518f96c313cdcd9ce5a7af6ded194 (patch)
tree213faacc3e3686598fec5dd7b2a50bef2262f9dd /src/config_parse.c
parenta03113e80332fba6c77f43b21d398caad50b4b89 (diff)
downloadlibgit2-38b852558eb518f96c313cdcd9ce5a7af6ded194.tar.gz
config: Fix a leak parsing multi-line config entries
Diffstat (limited to 'src/config_parse.c')
-rw-r--r--src/config_parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config_parse.c b/src/config_parse.c
index d40d47feb..bc70eec63 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;
}