From af3088e4642a0babb1cd26f5ed143f087f5a71f8 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Fri, 29 Jun 2018 11:45:15 +0200 Subject: refspec: rename `git_refspec__free` to `git_refspec__dispose` Since commit 630a67366 (refspec: add public parsing api, 2018-02-07), we now have two functions `git_refspec_free` and `git_refspec__free`. The difference is that the first one will free the structure itself, while the second one will only free the structure's contents. Use our new `dispose` naming pattern for the latter function to help avoid confusion. --- src/fetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fetch.c') diff --git a/src/fetch.c b/src/fetch.c index 0b22b3673..d68df8843 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -78,7 +78,7 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts) goto cleanup; error = git_refspec__dwim_one(&remote->active_refspecs, &head, &remote->refs); - git_refspec__free(&head); + git_refspec__dispose(&head); if (error < 0) goto cleanup; @@ -96,7 +96,7 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts) } cleanup: - git_refspec__free(&tagspec); + git_refspec__dispose(&tagspec); return error; } -- cgit v1.2.1