diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:55 -0700 |
commit | 9619ff14159ab3401636b9883a715b0f20b051df (patch) | |
tree | 6c6a310adf1f2138eca3f42bd484ac41ea7c50fe | |
parent | t/t3400-rebase.sh: add more tests to help migrating git-rebase.sh to C (diff) | |
parent | Merge branch 'maint-1.6.2' into maint (diff) | |
download | tgif-9619ff14159ab3401636b9883a715b0f20b051df.tar.xz |
Merge branch 'maint'
* maint:
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 dac2c6e052..45e8a69e2d 100644 --- a/http-push.c +++ b/http-push.c @@ -1415,8 +1415,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; } } |