plug a memory leak: got-read-commit forgot to close commits
diff --git a/libexec/got-read-commit/got-read-commit.c b/libexec/got-read-commit/got-read-commit.c
index 3ec8615..cf5f7b9 100644
--- a/libexec/got-read-commit/got-read-commit.c
+++ b/libexec/got-read-commit/got-read-commit.c
@@ -145,6 +145,7 @@ main(int argc, char *argv[])
goto done;
err = got_privsep_send_commit(&ibuf, commit);
+ got_object_commit_close(commit);
done:
if (f) {
if (fclose(f) != 0 && err == NULL)