branch.c
14.4 KB
-
branch: fix leak when checking against HEAD · a07b1698
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.
Carlos Martín Nieto committed