Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GC bug in FuncCOMPONENTS_TRANS #2353

Merged
merged 1 commit into from
Apr 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,9 +1185,8 @@ Obj FuncIMAGE_SET_TRANS_INT(Obj self, Obj f, Obj n)
return new;
}
else if (m < deg) {
pttmp = ResizeInitTmpTrans(deg);
new = NEW_PLIST_IMM(T_PLIST_CYC, m);
pttmp = ADDR_TRANS4(TmpTrans);
pttmp = ResizeInitTmpTrans(deg);

if (TNUM_OBJ(f) == T_TRANS2) {
ptf2 = CONST_ADDR_TRANS2(f);
Expand Down Expand Up @@ -2900,8 +2899,8 @@ Obj FuncCOMPONENTS_TRANS(Obj self, Obj f)
return out;
}

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

if (TNUM_OBJ(f) == T_TRANS2) {
Expand Down