diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-04 09:39:55 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-04 09:39:55 +0200 |
commit | fca09e3d85e49c710b855bd33cfb209eb21724f0 (patch) | |
tree | dc833dc084ac74fce06298343903064f78e08e1d | |
parent | 86e02f0338f29f1f572e26f92a0e6341f0e7bb64 (diff) | |
download | libgit2-cmn/remote-less-state.tar.gz |
push: free the update listcmn/remote-less-state
-rw-r--r-- | src/push.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/push.c b/src/push.c index cd219e905..abe90b76d 100644 --- a/src/push.c +++ b/src/push.c @@ -682,6 +682,7 @@ void git_push_free(git_push *push) { push_spec *spec; push_status *status; + git_push_update *update; unsigned int i; if (push == NULL) @@ -697,6 +698,13 @@ void git_push_free(git_push *push) } 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); } |