| 545 | } |
| 546 | |
| 547 | void clear_shallow_info(struct shallow_info *info) |
| 548 | { |
| 549 | if (info->used_shallow) { |
| 550 | for (size_t i = 0; i < info->shallow->nr; i++) |
| 551 | free(info->used_shallow[i]); |
| 552 | free(info->used_shallow); |
| 553 | } |
| 554 | |
| 555 | free(info->need_reachability_test); |
| 556 | free(info->reachable); |
| 557 | free(info->shallow_ref); |
| 558 | free(info->ours); |
| 559 | free(info->theirs); |
| 560 | commit_stack_clear(&info->commits); |
| 561 | } |
| 562 | |
| 563 | /* Step 4, remove non-existent ones in "theirs" after getting the pack */ |
| 564 |
no test coverage detected