]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
packed_ref_cache: increment refcount when locked
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 20 Jun 2013 08:37:49 +0000 (10:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2013 22:50:17 +0000 (15:50 -0700)
commit4f6b83e3708943c3b3f4ac911da7d0c30019c20a
treedb5cf558debd9d1a708a32f37f8b69bcb835f2a3
parent8baf2bb99a22f8265a26d97f706a27e39911f69e
packed_ref_cache: increment refcount when locked

Increment the packed_ref_cache reference count while it is locked to
prevent its being freed.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c