Commit 6589ebf1 authored by Alex Riesen's avatar Alex Riesen Committed by Junio C Hamano

http-push.c::remove_locks(): fix use after free

Noticed and reported by Serhat Şevki Dinçer.
Signed-off-by: default avatarAlex Riesen <[email protected]>
Acked-by: default avatarClemens Buchacher <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent c98a95ee
......@@ -1356,8 +1356,9 @@ static void remove_locks(void)
fprintf(stderr, "Removing remote locks...\n");
while (lock) {
struct remote_lock *next = lock->next;
lock = lock->next;
lock = next;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment