git-cvsexportcommit can't commit files which have been removed from CVS
[gitweb.git] / http-push.c
index 29e8ebfebb8947cc76b5631ae143d0003e5b3d51..e16a0ad3f97ef49930a599d3a800a0c7fad317e0 100644 (file)
@@ -1415,8 +1415,9 @@ static void remove_locks(void)
 
        fprintf(stderr, "Removing remote locks...\n");
        while (lock) {
+               struct remote_lock *next = lock->next;
                unlock_remote(lock);
-               lock = lock->next;
+               lock = next;
        }
 }