summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-04-01 09:37:55 +0200
committerPatrick Steinhardt <ps@pks.im>2016-04-01 09:37:55 +0200
commit83c93a7cc215956083e0c81155128adf4a5ca2f3 (patch)
tree41676b8781e43af94bcb94725a37ee0f647decbb /tests/diff/diffiter.c
parent24ecf18e81143b4e5f75ef31fc5b10582067d253 (diff)
downloadlibgit2-83c93a7cc215956083e0c81155128adf4a5ca2f3.tar.gz
merge_driver: fix missing `goto done;`
The code initializing the merge driver registry accidentally forgot a `goto done` in case of an error. Because of this the next line, which registers the global shutdown callback for the merge drivers, is only called when an error occured. Fix this by adding the missing `goto done`. This fixes some memory leaks when the global state is shut down.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions