diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-04-19 19:17:07 +0000 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2018-04-20 19:37:24 +0200 |
commit | 25100d6dc964cfb54d38d43a6d3bceae34dcbe36 (patch) | |
tree | 5aad3191388bf75e98c95a01cdc20f0ccf6cac6d /tests/diff/patch.c | |
parent | 592b200c60cae7ddba57d4d7787401c4f6d3ab47 (diff) | |
download | libgit2-25100d6dc964cfb54d38d43a6d3bceae34dcbe36.tar.gz |
tests: free the worktree in add_with_explicit_branch
Valgrind log:
==2711== 305 (48 direct, 257 indirect) bytes in 1 blocks are definitely lost in loss record 576 of 624
==2711== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2711== by 0x5E079E: git__calloc (util.h:99)
==2711== by 0x5E0D21: open_worktree_dir (worktree.c:134)
==2711== by 0x5E0F23: git_worktree_lookup (worktree.c:176)
==2711== by 0x5E1972: git_worktree_add (worktree.c:388)
==2711== by 0x551F23: test_worktree_worktree__add_with_explicit_branch (worktree.c:292)
==2711== by 0x45853E: clar_run_test (clar.c:222)
==2711== by 0x4587E1: clar_run_suite (clar.c:286)
==2711== by 0x458B04: clar_parse_args (clar.c:362)
==2711== by 0x458CAB: clar_test_run (clar.c:428)
==2711== by 0x45665C: main (main.c:24)
Diffstat (limited to 'tests/diff/patch.c')
0 files changed, 0 insertions, 0 deletions