diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:23 -0700 |
commit | 34ab57df974ad74cc93550bfac2f90d203837a17 (patch) | |
tree | 84da5c50e569edd9791fff35fcdc7e33a82cd504 | |
parent | Merge branch 'maint-1.6.1' into maint-1.6.2 (diff) | |
parent | Merge branch 'maint-1.6.0' into maint-1.6.1 (diff) | |
download | tgif-34ab57df974ad74cc93550bfac2f90d203837a17.tar.xz |
Merge branch 'maint-1.6.1' into maint-1.6.2
* maint-1.6.1:
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 968b6b0662..f101df4086 100644 --- a/http-push.c +++ b/http-push.c @@ -1378,8 +1378,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; } } |