Commit Diff
--- lib/worktree.c +++ lib/worktree.c @@ -7655,6 +7655,7 @@ got_worktree_merge_in_progress(int *in_progress, struc if (err) return err; err = got_ref_open(&branch_ref, repo, branch_refname, 0); + free(branch_refname); if (err) { if (err->code != GOT_ERR_NOT_REF) return err;