Commit 9018529b4ed190484aade5971fc1c9f1bcccfc15

Edward Thomson 2015-06-20T14:34:34

Merge pull request #3238 from git-up/double_free Fixed index being double-freed in stash tests

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/stash/apply.c b/tests/stash/apply.c
index c242536..c22a31b 100644
--- a/tests/stash/apply.c
+++ b/tests/stash/apply.c
@@ -44,8 +44,6 @@ void test_stash_apply__initialize(void)
 	assert_status(repo, "how", GIT_STATUS_CURRENT);
 	assert_status(repo, "who", GIT_STATUS_CURRENT);
 	assert_status(repo, "when", GIT_ENOTFOUND);
-
-	git_index_free(repo_index);
 }
 
 void test_stash_apply__cleanup(void)