Plugging memory leak.
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);