summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-08 02:22:22 -0800
committerRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-08 02:22:22 -0800
commit4b64c37f68a60cfce5ce6dfb5db37e68f0b3aa39 (patch)
treefe1817faf70a613701c9986712c0688c783e7615 /src/commit.c
parent2645053be21dab231c1d97d063acd19ea87f7577 (diff)
downloadlibgit2-4b64c37f68a60cfce5ce6dfb5db37e68f0b3aa39.tar.gz
Fixed memory leak in git_commit__free().
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commit.c b/src/commit.c
index 019cefecf..c3fa3823f 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -50,6 +50,7 @@ static void clear_parents(git_commit *commit)
void git_commit__free(git_commit *commit)
{
clear_parents(commit);
+ git_vector_free(&commit->parents);
git_signature_free(commit->author);
git_signature_free(commit->committer);