summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-06-13 17:09:45 -0700
committerJunio C Hamano <gitster@pobox.com>2009-06-13 17:09:45 -0700
commitdfe50511c7e5ec2bc771c9a5f4c3318332a7744e (patch)
tree1666306983a1943e1f7b2988ab29cef18a9492a3 /http-push.c
parent58066bec5a2cd8f5b6bb4884c8162364374ba0c1 (diff)
parentc97038d1cfbd98ea258086c417fe4f0c094596d3 (diff)
downloadgit-dfe50511c7e5ec2bc771c9a5f4c3318332a7744e.tar.gz
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0: git-rerere.txt: grammatical fixups and cleanups http-push.c::remove_locks(): fix use after free
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index cb5bf95a73..f743c9796a 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1356,8 +1356,9 @@ static void remove_locks(void)
fprintf(stderr, "Removing remote locks...\n");
while (lock) {
+ struct remote_lock *next = lock->next;
unlock_remote(lock);
- lock = lock->next;
+ lock = next;
}
}