Merge branch 'maint'
* maint: http-push.c::remove_locks(): fix use after free
This commit is contained in:
commit
9619ff1415
@ -1415,8 +1415,9 @@ static void remove_locks(void)
|
|||||||
|
|
||||||
fprintf(stderr, "Removing remote locks...\n");
|
fprintf(stderr, "Removing remote locks...\n");
|
||||||
while (lock) {
|
while (lock) {
|
||||||
|
struct remote_lock *next = lock->next;
|
||||||
unlock_remote(lock);
|
unlock_remote(lock);
|
||||||
lock = lock->next;
|
lock = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user