mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 08:00:07 +00:00
push: free the update list
This commit is contained in:
parent
b1ae3e5317
commit
3251972e1f
@ -682,6 +682,7 @@ void git_push_free(git_push *push)
|
|||||||
{
|
{
|
||||||
push_spec *spec;
|
push_spec *spec;
|
||||||
push_status *status;
|
push_status *status;
|
||||||
|
git_push_update *update;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (push == NULL)
|
if (push == NULL)
|
||||||
@ -697,6 +698,13 @@ void git_push_free(git_push *push)
|
|||||||
}
|
}
|
||||||
git_vector_free(&push->status);
|
git_vector_free(&push->status);
|
||||||
|
|
||||||
|
git_vector_foreach(&push->updates, i, update) {
|
||||||
|
git__free(update->src_refname);
|
||||||
|
git__free(update->dst_refname);
|
||||||
|
git__free(update);
|
||||||
|
}
|
||||||
|
git_vector_free(&push->updates);
|
||||||
|
|
||||||
git__free(push);
|
git__free(push);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user