From: Junio C Hamano Date: Sun, 24 May 2009 22:29:13 +0000 (-0700) Subject: Merge branch 'maint-1.6.0' into maint-1.6.1 X-Git-Tag: v1.6.3.2~25^2^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff6e93fe605b748055267fd325c760d0f32dcf92;hp=58066bec5a2cd8f5b6bb4884c8162364374ba0c1;p=git.git Merge branch 'maint-1.6.0' into maint-1.6.1 * maint-1.6.0: http-push.c::remove_locks(): fix use after free --- diff --git a/http-push.c b/http-push.c index cb5bf95a7..f743c9796 100644 --- a/http-push.c +++ b/http-push.c @@ -1356,8 +1356,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; } }