summaryrefslogtreecommitdiff
path: root/tests/odb/foreach.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-10 11:08:05 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-10 11:08:05 +0200
commit0137aba56863634d81e407152df723d5ad4a97ce (patch)
tree4e6e1afce58a9389db10f7f7d6955db670b5b72d /tests/odb/foreach.c
parent969d4b703c910a8fd045baafbcd243b4c9825316 (diff)
downloadlibgit2-cmn/coverity.tar.gz
filter: close the descriptor in case of errorcmn/coverity
When we hit an error writing to the next stream from a file, we jump to 'done' which currently skips over closing the file descriptor. Make sure to close the descriptor if it has been set to a valid value.
Diffstat (limited to 'tests/odb/foreach.c')
0 files changed, 0 insertions, 0 deletions