git-2.22.0/refs/ref-cache.c
/*
 * Clear and free all entries in dir, recursively.
 */
Clear and free all entries in dir, recursively.
Clear and free all entries in dir recursively .
static void clear_ref_dir(struct ref_dir *dir)
{
	int i;
	for (i = 0; i < dir->nr; i++)
		free_ref_entry(dir->entries[i]);
	FREE_AND_NULL(dir->entries);
	dir->sorted = dir->nr = dir->alloc = 0;
}
static void clear_ref_dir ( struct ref_dir * dir ) { int i ; for ( i = 0 ; i < dir -> nr ; i ++ ) free_ref_entry ( dir -> entries [ i ] ) ; FREE_AND_NULL ( dir -> entries ) ; dir -> sorted = dir -> nr = dir -> alloc = 0 ; }
Clear and free all entries in dir, recursively.
Clear and free all entries in dir recursively .