summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-05-24 15:29:33 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-24 15:29:33 -0700
commitf5b223abfdc01455d42ed005b4fd9330b06c2967 (patch)
treed9d07255c80520b8de3ad2c5dc8d9370ae0149fd
parentgrep: fix word-regexp colouring (diff)
parentMerge branch 'maint-1.6.1' into maint-1.6.2 (diff)
downloadtgif-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.c3
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;
}
}