summaryrefslogtreecommitdiff
path: root/src/mailmap.c
diff options
context:
space:
mode:
authorNika Layzell <nika@thelayzells.com>2018-06-14 22:48:58 -0700
committerNika Layzell <nika@thelayzells.com>2018-06-14 22:49:01 -0700
commit9faf36a6e89d1cc161bb6bf3afff7a3552b8a349 (patch)
tree84cbe7040ad24f089b3cf5df088a1447add62341 /src/mailmap.c
parentd91d2968a662ee2b2120c3b44aa6956d9ac57b89 (diff)
downloadlibgit2-9faf36a6e89d1cc161bb6bf3afff7a3552b8a349.tar.gz
mailmap: git_buf_free => git_buf_dispose
Diffstat (limited to 'src/mailmap.c')
-rw-r--r--src/mailmap.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mailmap.c b/src/mailmap.c
index f249c5261..b5fb7f69c 100644
--- a/src/mailmap.c
+++ b/src/mailmap.c
@@ -265,10 +265,10 @@ int git_mailmap_add_buffer(git_mailmap *mm, const char *buf, size_t len)
}
cleanup:
- git_buf_free(&real_name);
- git_buf_free(&real_email);
- git_buf_free(&replace_name);
- git_buf_free(&replace_email);
+ git_buf_dispose(&real_name);
+ git_buf_dispose(&real_email);
+ git_buf_dispose(&replace_name);
+ git_buf_dispose(&replace_email);
return error;
}
@@ -313,7 +313,7 @@ static int mailmap_add_blob(
goto cleanup;
cleanup:
- git_buf_free(&content);
+ git_buf_dispose(&content);
git_blob_free(blob);
git_object_free(object);
return error;
@@ -340,8 +340,8 @@ static int mailmap_add_file_ondisk(
goto cleanup;
cleanup:
- git_buf_free(&fullpath);
- git_buf_free(&content);
+ git_buf_dispose(&fullpath);
+ git_buf_dispose(&content);
return error;
}
@@ -386,8 +386,8 @@ static void mailmap_add_from_repository(git_mailmap *mm, git_repository *repo)
if (path != NULL)
mailmap_add_file_ondisk(mm, path, repo);
- git_buf_free(&rev_buf);
- git_buf_free(&path_buf);
+ git_buf_dispose(&rev_buf);
+ git_buf_dispose(&path_buf);
git_config_free(config);
}