File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,6 @@ void test_diff_submodules__skips_empty_includes_used(void)
449
449
git_diff_options opts = GIT_DIFF_OPTIONS_INIT ;
450
450
git_diff * diff = NULL ;
451
451
diff_expects exp ;
452
- git_repository * r2 ;
453
452
454
453
/* A side effect of of Git's handling of untracked directories and
455
454
* auto-ignoring of ".git" entries is that a newly initialized Git
@@ -469,7 +468,11 @@ void test_diff_submodules__skips_empty_includes_used(void)
469
468
cl_assert_equal_i (0 , exp .files );
470
469
git_diff_free (diff );
471
470
472
- cl_git_pass (git_repository_init (& r2 , "empty_standard_repo/subrepo" , 0 ));
471
+ {
472
+ git_repository * r2 ;
473
+ cl_git_pass (git_repository_init (& r2 , "empty_standard_repo/subrepo" , 0 ));
474
+ git_repository_free (r2 );
475
+ }
473
476
474
477
cl_git_pass (git_diff_index_to_workdir (& diff , g_repo , NULL , & opts ));
475
478
memset (& exp , 0 , sizeof (exp ));
You can’t perform that action at this time.
0 commit comments