Commit 8baf2bb
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 5f5e2a8 commit 8baf2bb
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1590 | 1590 | | |
1591 | 1591 | | |
1592 | 1592 | | |
1593 | | - | |
| 1593 | + | |
| 1594 | + | |
1594 | 1595 | | |
1595 | 1596 | | |
1596 | 1597 | | |
| 1598 | + | |
1597 | 1599 | | |
1598 | 1600 | | |
1599 | 1601 | | |
| |||
1614 | 1616 | | |
1615 | 1617 | | |
1616 | 1618 | | |
| 1619 | + | |
1617 | 1620 | | |
1618 | 1621 | | |
1619 | 1622 | | |
| |||
0 commit comments