Commit Diff


commit - 686a711704036333d33dca7a63fa3501d4d6acdd
commit + 12e242cc147359760295ebf3098d829c208aa52a
blob - 7aae170c238664c91f6d635261100cb7454437c5
blob + 76ffc94fa56c6e5dd93931e8e5b4596defe94b96
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
@@ -923,6 +923,8 @@ done:
 	got_ref_list_free(&refs);
 	if (commit)
 		got_object_commit_close(commit);
+	if (tree)
+		got_object_tree_close(tree);
 	free(commit_id);
 	free(tree_id);
 	return error;