Skip to content

Commit ff6e93f

Browse files
committed
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0: http-push.c::remove_locks(): fix use after free
2 parents 58066be + 6589ebf commit ff6e93f

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

13571357
fprintf(stderr, "Removing remote locks...\n");
13581358
while (lock) {
1359+
struct remote_lock *next = lock->next;
13591360
unlock_remote(lock);
1360-
lock = lock->next;
1361+
lock = next;
13611362
}
13621363
}
13631364

0 commit comments

Comments
 (0)