diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-07 15:40:53 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-07 16:03:10 +0100 |
commit | a07b169834a11f60a2baa98f9735c2dfe7e4a1ee (patch) | |
tree | 8814f4ea59e0fc4ecd3eabc9516b405b9d372003 /tests/clone/empty.c | |
parent | 7c1ee212b7fa1568a12a0a656b02cae01cb1cb6c (diff) | |
download | libgit2-a07b169834a11f60a2baa98f9735c2dfe7e4a1ee.tar.gz |
branch: fix leak when checking against HEAD
We look up a reference in order to figure out if it's the current
branch, which we need to free once we're done with the check.
As a bonus, only perform the check when we're passed the force flag, as
it's a useless check otherwise.
Diffstat (limited to 'tests/clone/empty.c')
0 files changed, 0 insertions, 0 deletions