Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69a1a69

Browse files
committed
Plug a leak in the tests
1 parent 2f6f6eb commit 69a1a69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/index/filemodes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,6 @@ void test_index_filemodes__invalid(void)
166166

167167
entry.mode = GIT_FILEMODE_BLOB;
168168
cl_git_pass(git_index_add(index, &entry));
169+
170+
git_index_free(index);
169171
}

0 commit comments

Comments
 (0)