Commit 14e1bc157a06d4513ce4193e6100a338432b3c88

Carlos Martín Nieto 2012-07-21T17:54:56

tests: plug a leak in the config stress

1
2
3
4
5
6
7
8
9
10
diff --git a/tests-clar/config/stress.c b/tests-clar/config/stress.c
index 8fbc8b9..6e7db6e 100644
--- a/tests-clar/config/stress.c
+++ b/tests-clar/config/stress.c
@@ -80,4 +80,5 @@ void test_config_stress__escape_subsection_names(void)
 
 	cl_git_pass(git_config_get_string(&str, config, "some.sec\\tion.other"));
 	cl_assert(!strcmp("foo", str));
+	git_config_free(config);
 }