diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2014-10-13 14:34:32 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2014-10-26 22:27:44 -0400 |
| commit | cdd71711cedd3c79a10f75ea8ff98c3979bf6c6c (patch) | |
| tree | 38fd33fa71f1d8abc13c609529ca429182518b46 /src | |
| parent | 369b0217330383925d8091ae01079789cde80598 (diff) | |
| download | libgit2-cdd71711cedd3c79a10f75ea8ff98c3979bf6c6c.tar.gz | |
Clean up some memory leaks
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index 362c226c4..4b516420f 100644 --- a/src/remote.c +++ b/src/remote.c @@ -1255,6 +1255,7 @@ static int opportunistic_updates(const git_remote *remote, git_vector *refs, con error = git_reference_create(&ref, remote->repo, refname.ptr, &head->oid, true, sig, msg); git_buf_free(&refname); + git_reference_free(ref); if (error < 0) return error; |
