author | Junio C Hamano <gitster@pobox.com> | |
Sun, 24 May 2009 22:29:23 +0000 (15:29 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 24 May 2009 22:29:23 +0000 (15:29 -0700) |
* maint-1.6.1:
http-push.c::remove_locks(): fix use after free
http-push.c::remove_locks(): fix use after free
http-push.c | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index 968b6b0662a89d437e53bcc699c65e98a745f659..f101df40861a13db40cb2f564476369f3765a28f 100644 (file)
--- a/http-push.c
+++ b/http-push.c
fprintf(stderr, "Removing remote locks...\n");
while (lock) {
+ struct remote_lock *next = lock->next;
unlock_remote(lock);
- lock = lock->next;
+ lock = next;
}
}