diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:33 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:33 -0700 |
commit | f5b223abfdc01455d42ed005b4fd9330b06c2967 (patch) | |
tree | d9d07255c80520b8de3ad2c5dc8d9370ae0149fd | |
parent | grep: fix word-regexp colouring (diff) | |
parent | Merge branch 'maint-1.6.1' into maint-1.6.2 (diff) | |
download | tgif-f5b223abfdc01455d42ed005b4fd9330b06c2967.tar.xz |
Merge branch 'maint-1.6.2' into maint
* maint-1.6.2:
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 5138224cc3..9da14201b1 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; } } |