summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-05-24 15:29:55 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-24 15:29:55 -0700
commit9619ff14159ab3401636b9883a715b0f20b051df (patch)
tree6c6a310adf1f2138eca3f42bd484ac41ea7c50fe
parentt/t3400-rebase.sh: add more tests to help migrating git-rebase.sh to C (diff)
parentMerge branch 'maint-1.6.2' into maint (diff)
downloadtgif-9619ff14159ab3401636b9883a715b0f20b051df.tar.xz
Merge branch 'maint'
* maint: 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 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;
}
}