Skip to content

Commit

Permalink
u3: avoid unnecessary refcount churn in melt
Browse files Browse the repository at this point in the history
  • Loading branch information
joemfb committed Apr 11, 2024
1 parent 8a4d083 commit ddca8bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/noun/urth.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ _traverse(u3_noun som, u3p(u3h_root) set_p)
//
if (u3_none != (hav = _get(som, set_p)))
{
if ( som == hav ) {
return som;
}

u3z(som);
return u3k(hav);
}
Expand Down

0 comments on commit ddca8bc

Please sign in to comment.