@@ -8,7 +8,7 @@ static void assert_refspec(unsigned int direction, const char *input, bool is_ex
88 int error ;
99
1010 error = git_refspec__parse (& refspec , input , direction == GIT_DIRECTION_FETCH );
11- git_refspec__free (& refspec );
11+ git_refspec__dispose (& refspec );
1212
1313 if (is_expected_to_be_valid )
1414 cl_assert_equal_i (0 , error );
@@ -98,7 +98,7 @@ static void assert_valid_transform(const char *refspec, const char *name, const
9898 cl_assert_equal_s (result , buf .ptr );
9999
100100 git_buf_dispose (& buf );
101- git_refspec__free (& spec );
101+ git_refspec__dispose (& spec );
102102}
103103
104104void test_network_refspecs__transform_mid_star (void )
@@ -120,7 +120,7 @@ static void assert_invalid_transform(const char *refspec, const char *name)
120120 cl_git_fail (git_refspec_transform (& buf , & spec , name ));
121121
122122 git_buf_dispose (& buf );
123- git_refspec__free (& spec );
123+ git_refspec__dispose (& spec );
124124}
125125
126126void test_network_refspecs__invalid (void )
@@ -138,7 +138,7 @@ static void assert_invalid_rtransform(const char *refspec, const char *name)
138138 cl_git_fail (git_refspec_rtransform (& buf , & spec , name ));
139139
140140 git_buf_dispose (& buf );
141- git_refspec__free (& spec );
141+ git_refspec__dispose (& spec );
142142}
143143
144144void test_network_refspecs__invalid_reverse (void )
@@ -156,7 +156,7 @@ void test_network_refspecs__matching(void)
156156 cl_assert_equal_s ("" , spec .src );
157157 cl_assert_equal_s ("" , spec .dst );
158158
159- git_refspec__free (& spec );
159+ git_refspec__dispose (& spec );
160160}
161161
162162void test_network_refspecs__parse_free (void )
0 commit comments