mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Merge branch 'maint-1.6.1' into maint-1.6.2
* maint-1.6.1: http-push.c::remove_locks(): fix use after free
This commit is contained in:
commit
34ab57df97
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue