From 96d142e71b8a8a5affdab6f1c033799510040cce Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 8 Mar 2024 17:24:27 +0100 Subject: Revert "prog: fix resource leak during replaceArg() of union fields" This reverts commit 6387f6b7d487e2a77d753ad28c1074e39c17c3ca. --- prog/mutation.go | 1 + 1 file changed, 1 insertion(+) (limited to 'prog/mutation.go') diff --git a/prog/mutation.go b/prog/mutation.go index 54f88c175..cf93ce4eb 100644 --- a/prog/mutation.go +++ b/prog/mutation.go @@ -505,6 +505,7 @@ func (t *UnionType) mutate(r *randGen, s *state, arg Arg, ctx ArgCtx) (calls []* index++ } optType, optDir := t.Fields[index].Type, t.Fields[index].Dir(a.Dir()) + removeArg(a.Option) var newOpt Arg newOpt, calls = r.generateArg(s, optType, optDir) replaceArg(arg, MakeUnionArg(t, a.Dir(), newOpt, index)) -- cgit mrf-deployment