diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-25 00:29:13 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-25 00:29:13 +0200 |
commit | ff6e93fe605b748055267fd325c760d0f32dcf92 (patch) | |
tree | cd70b871a9496c5502b975236aa4c900af04ab28 | |
parent | Merge branch 'maint-1.6.0' into maint-1.6.1 (diff) | |
parent | http-push.c::remove_locks(): fix use after free (diff) | |
download | git-ff6e93fe605b748055267fd325c760d0f32dcf92.tar.xz git-ff6e93fe605b748055267fd325c760d0f32dcf92.zip |
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0:
http-push.c::remove_locks(): fix use after free
-rw-r--r-- | http-push.c | 3 |
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; } } |