MCPcopy Index your code
hub / github.com/git/git / fetch_task_free

Function fetch_task_free

submodule.c:1479–1492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477}
1478
1479static void fetch_task_free(struct fetch_task *p)
1480{
1481 if (p->free_sub)
1482 free((void*)p->sub);
1483 p->free_sub = 0;
1484 p->sub = NULL;
1485
1486 if (p->repo)
1487 repo_clear(p->repo);
1488 FREE_AND_NULL(p->repo);
1489
1490 strvec_clear(&p->git_args);
1491 free(p);
1492}
1493
1494static struct repository *get_submodule_repo_for(struct repository *r,
1495 const char *path,

Callers 5

fetch_task_createFunction · 0.85
fetch_start_failureFunction · 0.85
fetch_finishFunction · 0.85

Calls 2

repo_clearFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected