Skip to content

Commit 9619ff1

Browse files
committed
Merge branch 'maint'
* maint: http-push.c::remove_locks(): fix use after free
2 parents 7a7eb51 + f5b223a commit 9619ff1

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
@@ -1415,8 +1415,9 @@ static void remove_locks(void)
14151415

14161416
fprintf(stderr, "Removing remote locks...\n");
14171417
while (lock) {
1418+
struct remote_lock *next = lock->next;
14181419
unlock_remote(lock);
1419-
lock = lock->next;
1420+
lock = next;
14201421
}
14211422
}
14221423

0 commit comments

Comments
 (0)