Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Sun, 24 May 2009 22:29:55 +0000
(15:29 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 24 May 2009 22:29:55 +0000
(15:29 -0700)
* maint:
http-push.c::remove_locks(): fix use after free
http-push.c
patch
|
blob
|
history
raw
(from parent 1:
7a7eb51
)
diff --git
a/http-push.c
b/http-push.c
index dac2c6e0524e3051ca98bfb4d75fbc81efe91eef..45e8a69e2d6b83f5a1564e7d1fe40d783d87ae3e 100644
(file)
--- 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;
}
}