diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-24 15:29:55 -0700 |
commit | 9619ff14159ab3401636b9883a715b0f20b051df (patch) | |
tree | 6c6a310adf1f2138eca3f42bd484ac41ea7c50fe | |
parent | 7a7eb5173d4e16f0323b2c4078e88fc0a40c38b6 (diff) | |
parent | f5b223abfdc01455d42ed005b4fd9330b06c2967 (diff) | |
download | git-9619ff14159ab3401636b9883a715b0f20b051df.tar.gz git-9619ff14159ab3401636b9883a715b0f20b051df.tar.xz |
Merge branch 'maint'
* maint:
http-push.c::remove_locks(): fix use after free
-rw-r--r-- | http-push.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c index dac2c6e05..45e8a69e2 100644 --- a/http-push.c +++ b/http-push.c @@ -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; } } |