File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,9 @@ void test_online_clone__clone_mirror(void)
194
194
git_remote_free (remote );
195
195
git_reference_free (head );
196
196
git_buf_free (& path );
197
+ git_repository_free (g_repo );
198
+ g_repo = NULL ;
199
+
197
200
cl_fixture_cleanup ("./foo.git" );
198
201
}
199
202
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ void rewrite_gitmodules(const char *workdir)
19
19
cl_git_pass (git_buf_joinpath (& in_f , workdir , "gitmodules" ));
20
20
cl_git_pass (git_buf_joinpath (& out_f , workdir , ".gitmodules" ));
21
21
22
- cl_assert ((in = fopen (in_f .ptr , "r " )) != NULL );
23
- cl_assert ((out = fopen (out_f .ptr , "w " )) != NULL );
22
+ cl_assert ((in = fopen (in_f .ptr , "rb " )) != NULL );
23
+ cl_assert ((out = fopen (out_f .ptr , "wb " )) != NULL );
24
24
25
25
while (fgets (line , sizeof (line ), in ) != NULL ) {
26
26
char * scan = line ;
You can’t perform that action at this time.
0 commit comments