diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:13 -0700 |
commit | ff6e93fe605b748055267fd325c760d0f32dcf92 (patch) | |
tree | cd70b871a9496c5502b975236aa4c900af04ab28 | |
parent | 58066bec5a2cd8f5b6bb4884c8162364374ba0c1 (diff) | |
parent | 6589ebf107214a9e6db31764e847301f1adebc81 (diff) | |
download | git-ff6e93fe605b748055267fd325c760d0f32dcf92.tar.gz git-ff6e93fe605b748055267fd325c760d0f32dcf92.tar.xz |
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 cb5bf95a7..f743c9796 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; } } |