commit 996fba9b2127b5170b74da3dcdf8eabc7a5f8985 from: Mark Jamsek date: Fri Jul 28 13:22:31 2023 UTC zap unused got_commit_object var; ok op@ commit - c2ba7aa6808a2583895c024f5c85fff03948494e commit + 996fba9b2127b5170b74da3dcdf8eabc7a5f8985 blob - 72eb97a7e23d5f426a1660337c93deb7704985ad blob + 81971e1f4c71f923c6da083afafa88b6001e10bf --- got/got.c +++ got/got.c @@ -12199,7 +12199,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) @@ -12229,8 +12228,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; }