Changeset 76a7291 in git
- Timestamp:
- Nov 2, 2016, 10:06:31 AM (7 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 3b2f18b809aae88b52d4b3a2008335a979a47b49
- Parents:
- 1f2e178524399d9770203927b4de7a3c47929f32
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r1f2e178 r76a7291 7960 7960 break;// leave loop, goto error handling 7961 7961 } 7962 a->CleanUp(); 7963 b->CleanUp(); 7962 7964 //Print("op: %d,result typ:%d\n",op,res->rtyp); 7963 7965 return FALSE; … … 8075 8077 } 8076 8078 } 8079 a->CleanUp(); 8080 b->CleanUp(); 8077 8081 res->rtyp = UNKNOWN; 8078 8082 } … … 8089 8093 BOOLEAN bo=iiExprArith2TabIntern(res,a,op,b,TRUE,dA2,at,bt,dConvertTypes); 8090 8094 a->next=b; 8091 a->CleanUp(); 8095 a->CleanUp(); // to clean up the chain, content already done in iiExprArith2TabIntern 8092 8096 return bo; 8093 8097 } … … 8104 8108 command d=(command)omAlloc0Bin(sip_command_bin); 8105 8109 memcpy(&d->arg1,a,sizeof(sleftv)); 8106 //a->Init();8110 a->Init(); 8107 8111 memcpy(&d->arg2,b,sizeof(sleftv)); 8108 //b->Init();8112 b->Init(); 8109 8113 d->argc=2; 8110 8114 d->op=op; … … 8294 8298 command d=(command)omAlloc0Bin(sip_command_bin); 8295 8299 memcpy(&d->arg1,a,sizeof(sleftv)); 8296 //a->Init();8300 a->Init(); 8297 8301 d->op=op; 8298 8302 d->argc=1; … … 8371 8375 break;// leave loop, goto error handling 8372 8376 } 8377 a->CleanUp(); 8378 b->CleanUp(); 8379 c->CleanUp(); 8373 8380 return FALSE; 8374 8381 } … … 8424 8431 omFreeBin((ADDRESS)cn, sleftv_bin); 8425 8432 //Print("op: %d,result typ:%d\n",op,res->rtyp); 8433 a->CleanUp(); 8434 b->CleanUp(); 8435 c->CleanUp(); 8426 8436 return FALSE; 8427 8437 } … … 8485 8495 res->rtyp = UNKNOWN; 8486 8496 } 8487 //Print("op: %d,result typ:%d\n",op,res->rtyp); 8497 a->CleanUp(); 8498 b->CleanUp(); 8499 c->CleanUp(); 8500 //Print("op: %d,result typ:%d\n",op,res->rtyp); 8488 8501 return TRUE; 8489 8502 } … … 8500 8513 command d=(command)omAlloc0Bin(sip_command_bin); 8501 8514 memcpy(&d->arg1,a,sizeof(sleftv)); 8502 //a->Init();8515 a->Init(); 8503 8516 memcpy(&d->arg2,b,sizeof(sleftv)); 8504 //b->Init();8517 b->Init(); 8505 8518 memcpy(&d->arg3,c,sizeof(sleftv)); 8506 //c->Init();8519 c->Init(); 8507 8520 d->op=op; 8508 8521 d->argc=3; … … 8537 8550 b->CleanUp(); 8538 8551 c->CleanUp(); 8539 8552 //Print("op: %d,result typ:%d\n",op,res->rtyp); 8540 8553 return TRUE; 8541 8554 } … … 8554 8567 b->next=c; 8555 8568 a->next=b; 8556 a->CleanUp(); 8569 a->CleanUp(); // to cleanup the chain, content already done 8557 8570 return bo; 8558 8571 } … … 9150 9163 tmp.Copy(v); 9151 9164 bo=iiExprArith2TabIntern(&res_l->m[i],&c->m[i],CHINREM_CMD,&tmp,TRUE,dArith2+tab_pos,c->m[i].rtyp,tmp.rtyp,dConvertTypes); 9152 tmp.CleanUp();9153 9165 if (bo) { Werror("chinrem failed for list entry %d",i+1); break;} 9154 9166 } … … 9304 9316 tmp.Copy(v); 9305 9317 bo=iiExprArith2TabIntern(&res_l->m[i],&c->m[i],FAREY_CMD,&tmp,TRUE,dArith2+tab_pos,c->m[i].rtyp,tmp.rtyp,dConvertTypes); 9306 tmp.CleanUp();9307 9318 if (bo) { Werror("farey failed for list entry %d",i+1); break;} 9308 9319 }
Note: See TracChangeset
for help on using the changeset viewer.