]> git.ipfire.org Git - thirdparty/git.git/commit
http-push: avoid invalid memory accesses
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Thu, 14 Feb 2008 23:25:33 +0000 (23:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Feb 2008 07:21:56 +0000 (23:21 -0800)
commitadd8e8cee5054734cb19d918f83bcee649aab326
tree65f2757e010dd84fd01a7e0f0b36a4e09a2829cf
parent0ef617f4b6ea78ad63dd11e90f8c854238176981
http-push: avoid invalid memory accesses

Before objects are sent, the respective ref is locked.  However,
without this patch, the lock is lifted before the last object for
that ref was sent.  As a consequence, the lock data was accessed
after the lock structure was free()d.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c