File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ void test_diff_racy__initialize(void)
12
12
13
13
void test_diff_racy__cleanup (void )
14
14
{
15
- cl_git_sandbox_cleanup ();
15
+ git_repository_free (g_repo );
16
+ g_repo = NULL ;
17
+
18
+ cl_fixture_cleanup ("diff_racy" );
16
19
}
17
20
18
21
void test_diff_racy__diff (void )
@@ -31,12 +34,17 @@ void test_diff_racy__diff(void)
31
34
32
35
cl_git_pass (git_diff_index_to_workdir (& diff , g_repo , index , NULL ));
33
36
cl_assert_equal_i (0 , git_diff_num_deltas (diff ));
37
+ git_diff_free (diff );
34
38
35
39
/* Change its contents quickly, so we get the same timestamp */
36
40
cl_git_mkfile (path .ptr , "B" );
37
41
38
42
cl_git_pass (git_diff_index_to_workdir (& diff , g_repo , index , NULL ));
39
43
cl_assert_equal_i (1 , git_diff_num_deltas (diff ));
44
+
45
+ git_index_free (index );
46
+ git_diff_free (diff );
47
+ git_buf_free (& path );
40
48
}
41
49
42
50
void test_diff_racy__write_index_just_after_file (void )
You can’t perform that action at this time.
0 commit comments