X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexam_factor.cpp;h=754deea7f8addb9fd44a3a87f25654dcd130bf77;hp=bed95aa17057632dccc1b75a0c374e72538a0f22;hb=65f2693a0948d1db0bc68d7656c64e1fed91c158;hpb=00d612ce3789ba9240ade1b8bf06b26c326bd8f2;ds=sidebyside diff --git a/check/exam_factor.cpp b/check/exam_factor.cpp index bed95aa1..754deea7 100644 --- a/check/exam_factor.cpp +++ b/check/exam_factor.cpp @@ -184,7 +184,7 @@ static unsigned exam_factor3() static unsigned check_factorization(const exvector& factors) { - ex e = (new mul(factors))->setflag(status_flags::dynallocated); + ex e = dynallocate(factors); ex ef = factor(e.expand()); if (ef.nops() != factors.size()) { clog << "wrong number of factors, expected " << factors.size() <<