| 2956 | } |
| 2957 | |
| 2958 | static 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 | |
| 2972 | static void find_deltas(struct object_entry **list, unsigned *list_size, |
| 2973 | int window, int depth, unsigned *processed) |
no test coverage detected