MCPcopy Create free account
hub / github.com/git/git / free_unpacked

Function free_unpacked

builtin/pack-objects.c:2958–2970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2956}
2957
2958static unsigned long free_unpacked(struct unpacked *n)
2959{
2960 unsigned long freed_mem = sizeof_delta_index(n->index);
2961 free_delta_index(n->index);
2962 n->index = NULL;
2963 if (n->data) {
2964 freed_mem += SIZE(n->entry);
2965 FREE_AND_NULL(n->data);
2966 }
2967 n->entry = NULL;
2968 n->depth = 0;
2969 return freed_mem;
2970}
2971
2972static void find_deltas(struct object_entry **list, unsigned *list_size,
2973 int window, int depth, unsigned *processed)

Callers 1

find_deltasFunction · 0.85

Calls 2

sizeof_delta_indexFunction · 0.85
free_delta_indexFunction · 0.85

Tested by

no test coverage detected