Skip to content

Commit afc64bc

Browse files
committed
tests: apply: fix reference to deprecated git_buf_free
Since commit 56ffdfc (buffer: deprecate `git_buf_free` in favor of `git_buf_dispose`, 2018-02-08), the function `git_buf_free` is deprecated and shall not be used anymore. As part of the new apply framework that has been cooking for quite some time some new references have been introduced to that deprecated function. Replace them with calls to `git_buf_dispose`.
1 parent fe21515 commit afc64bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/apply/partial.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ static int apply_buf(
104104
}
105105

106106
git__free(filename);
107-
git_buf_free(&result);
108-
git_buf_free(&patchbuf);
107+
git_buf_dispose(&result);
108+
git_buf_dispose(&patchbuf);
109109
git_patch_free(patch);
110110

111111
return error;

0 commit comments

Comments
 (0)