diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 16:12:45 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 16:40:18 +0200 |
| commit | 3e529e9d2dd2ae90d43612b9906f16c812101033 (patch) | |
| tree | 8dd0b225773519d5e4fbdc035b5b2df4aa43cab3 /tests/stash/apply.c | |
| parent | d01737b419fd61010d2a0948d5d77fb0f214820a (diff) | |
| download | libgit2-3e529e9d2dd2ae90d43612b9906f16c812101033.tar.gz | |
Fix a few leaks
The interesting one is the notification macro, which was returning
directly on a soft-abort instead of going through the cleanup.
Diffstat (limited to 'tests/stash/apply.c')
| -rw-r--r-- | tests/stash/apply.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/stash/apply.c b/tests/stash/apply.c index 213945e9b..42186b6fb 100644 --- a/tests/stash/apply.c +++ b/tests/stash/apply.c @@ -44,6 +44,8 @@ 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) |
