Merge branch 'jm/free'

* jm/free:
  Avoid unnecessary "if-before-free" tests.

Conflicts:

	builtin-branch.c
This commit is contained in:
Junio C Hamano
2008-02-27 13:03:50 -08:00
17 changed files with 27 additions and 53 deletions

View File

@ -593,8 +593,7 @@ void free_refs(struct ref *ref)
struct ref *next;
while (ref) {
next = ref->next;
if (ref->peer_ref)
free(ref->peer_ref);
free(ref->peer_ref);
free(ref);
ref = next;
}