Commit 90aa2bf39b27a9194bd1b4d88efea8f4281d0617

Edward Thomson 2014-10-25T19:51:12

config test: clean up memory leak

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/config/snapshot.c b/tests/config/snapshot.c
index e47e252..3ea07c1 100644
--- a/tests/config/snapshot.c
+++ b/tests/config/snapshot.c
@@ -37,6 +37,7 @@ void test_config_snapshot__create_snapshot(void)
 	cl_git_pass(git_config_get_int32(&tmp, snapshot, "old.value"));
 	cl_assert_equal_i(5, tmp);
 	
+	git_config_free(new_snapshot);
 	git_config_free(snapshot);
 	git_config_free(cfg);
 }