Commit Diff


commit - 4c3671a956b34d28010bc174d1e337c6ee43c8ec
commit + ecd443d2472ce096dd28f55b466a204eca5b62c4
blob - 9cf849d5bcd773f1443a12efa6474be19cec79aa
blob + f9aa79fc98a4ac2f2417cf76d26f3979c6ee6959
--- got/got.c
+++ got/got.c
@@ -12198,7 +12198,6 @@ histedit_save_list(struct got_histedit_list *histedit_
 	char *path = NULL;
 	FILE *f = NULL;
 	struct got_histedit_list_entry *hle;
-	struct got_commit_object *commit = NULL;
 
 	err = got_worktree_get_histedit_script_path(&path, worktree);
 	if (err)
@@ -12228,8 +12227,6 @@ done:
 	if (f && fclose(f) == EOF && err == NULL)
 		err = got_error_from_errno("fclose");
 	free(path);
-	if (commit)
-		got_object_commit_close(commit);
 	return err;
 }