author | Junio C Hamano <gitster@pobox.com> | |
Sun, 24 May 2009 22:29:13 +0000 (15:29 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 24 May 2009 22:29:13 +0000 (15:29 -0700) |
* maint-1.6.0:
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 cb5bf95a736c571259aef51884cc20e4169bf707..f743c9796a369a44c84238c244314da3c7b45dab 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;
}
}