diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-02-08 11:14:48 +0000 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-06-10 19:34:37 +0200 |
| commit | ecf4f33a4e327a91496f72816f9f02d923e5af05 (patch) | |
| tree | bb8eccc9ab0dc8f36a702c8a15ad5ae92429ee07 /src/config_parse.c | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/config_parse.c')
| -rw-r--r-- | src/config_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config_parse.c b/src/config_parse.c index 149550dcd..66ac43237 100644 --- a/src/config_parse.c +++ b/src/config_parse.c @@ -130,7 +130,7 @@ end_parse: if (line[rpos] != '"' || line[rpos + 1] != ']') { set_parse_error(reader, rpos, "Unexpected text after closing quotes"); - git_buf_free(&buf); + git_buf_dispose(&buf); return -1; } @@ -138,7 +138,7 @@ end_parse: return 0; end_error: - git_buf_free(&buf); + git_buf_dispose(&buf); return -1; } @@ -437,7 +437,7 @@ static int parse_variable(git_config_parser *reader, char **var_name, char **var if (parse_multiline_variable(reader, &multi_value, quote_count) < 0 || git_buf_oom(&multi_value)) { - git_buf_free(&multi_value); + git_buf_dispose(&multi_value); goto on_error; } |
