Skip to content

Commit 34ab57d

Browse files
committed
Merge branch 'maint-1.6.1' into maint-1.6.2
* maint-1.6.1: http-push.c::remove_locks(): fix use after free
2 parents 2131951 + ff6e93f commit 34ab57d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-push.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,8 +1378,9 @@ static void remove_locks(void)
13781378

13791379
fprintf(stderr, "Removing remote locks...\n");
13801380
while (lock) {
1381+
struct remote_lock *next = lock->next;
13811382
unlock_remote(lock);
1382-
lock = lock->next;
1383+
lock = next;
13831384
}
13841385
}
13851386

0 commit comments

Comments
 (0)