Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint-1.6.1' into maint-1.6.2
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
patch
|
blob
|
history
raw
(from parent 1:
2131951
)
diff --git
a/http-push.c
b/http-push.c
index 968b6b0662a89d437e53bcc699c65e98a745f659..f101df40861a13db40cb2f564476369f3765a28f 100644
(file)
--- a/
http-push.c
+++ b/
http-push.c
@@
-1378,8
+1378,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;
}
}