aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-24 15:29:33 -0700
committerJunio C Hamano <gitster@pobox.com>2009-05-24 15:29:33 -0700
commitf5b223abfdc01455d42ed005b4fd9330b06c2967 (patch)
treed9d07255c80520b8de3ad2c5dc8d9370ae0149fd
parente701fadb9e0e51a6811690d95a53bd1f5b6fad86 (diff)
parent34ab57df974ad74cc93550bfac2f90d203837a17 (diff)
downloadgit-f5b223abfdc01455d42ed005b4fd9330b06c2967.tar.gz
git-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 5138224cc..9da14201b 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;
}
}