diff options
| author | Michael Haggerty <mhagger@alum.mit.edu> | 2013-06-20 10:37:48 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2013-06-20 15:50:17 -0700 |
| commit | 8baf2bb99a22f8265a26d97f706a27e39911f69e (patch) | |
| tree | f897080265b79b6f81cb6ffad650919ab72b8d71 /compat/regex | |
| parent | 5f5e2a8868e2b5792bf467799339e3288282e91e (diff) | |
do_for_each_entry(): increment the packed refs cache refcount
This function calls a user-supplied callback function which could do
something that causes the packed refs cache to be invalidated. So
acquire a reference count on the data structure to prevent our copy
from being freed while we are iterating over it.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/regex')
0 files changed, 0 insertions, 0 deletions
