diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-09-27 12:04:41 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-09-30 11:56:37 +0200 |
commit | 3665ba8eeb4f8b2546517cd208e940b128dd8a46 (patch) | |
tree | f745ef0b1c5187ee1008ae8ee2ae47090443d560 /tests-clar/network | |
parent | 2af1c266415bd2030cdfef8ec170a6c135e12b75 (diff) | |
download | libgit2-3665ba8eeb4f8b2546517cd208e940b128dd8a46.tar.gz |
refspec: add git_refspec__free, remove git_refspec_parse
The latter shouldn't be exposed and isn't used, git_refspec__parse
supersedes it.
Fix a leak in the refspec tests while we're at it.
Diffstat (limited to 'tests-clar/network')
-rw-r--r-- | tests-clar/network/refspecs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests-clar/network/refspecs.c b/tests-clar/network/refspecs.c index bfe0af48c..3b1281722 100644 --- a/tests-clar/network/refspecs.c +++ b/tests-clar/network/refspecs.c @@ -8,6 +8,7 @@ static void assert_refspec(unsigned int direction, const char *input, bool is_ex int error; error = git_refspec__parse(&refspec, input, direction == GIT_DIR_FETCH); + git_refspec__free(&refspec); if (is_expected_to_be_valid) cl_assert_equal_i(0, error); |