Skip to content

Commit

Permalink
Do not hold pointer into a bag while creating a new Plist
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson authored and fingolfin committed Jun 15, 2018
1 parent e3c7d10 commit d509288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -3139,10 +3139,11 @@ Obj FuncCYCLES_TRANS(Obj self, Obj f)
return out;
}

seen = ResizeInitTmpTrans(deg);
out = NEW_PLIST(T_PLIST, 0);
nr = 0;

seen = ResizeInitTmpTrans(deg);

if (TNUM_OBJ(f) == T_TRANS2) {
ptf2 = CONST_ADDR_TRANS2(f);
for (i = 0; i < deg; i++) {
Expand Down

0 comments on commit d509288

Please sign in to comment.