Commit b41384b473e9ea4cfaea6f42b106e805bae8ab93

Ben Straub 2012-05-10T14:14:09

Plugging memory leak.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/revparse.c b/src/revparse.c
index 98285f0..5f52744 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -270,6 +270,8 @@ static int walk_ref_history(git_object **out, git_repository *repo, const char *
                   const git_reflog_entry *entry = git_reflog_entry_byindex(reflog, 0);
                   retcode = git_object_lookup(out, repo, git_reflog_entry_oidnew(entry), GIT_OBJ_ANY);
                }
+
+               git_reflog_free(reflog);
             }
 
             git_reference_free(ref);