Bugfix for linux port

git-svn-id: svn://kolibrios.org@7545 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
tsdima
2018-11-09 18:21:10 +00:00
parent 60e27afe74
commit 490fec6653
4 changed files with 17 additions and 48 deletions
+3 -3
View File
@@ -9081,7 +9081,7 @@ COM_MOD *bmod;
if(itok.type==tp_opperand)operand=tok;
else{
i++;
if(bufrm)free(bufrm);
if(bufrm){ free(bufrm); bufrm=NULL; }
if(strinf.bufstr)free(strinf.bufstr);
switch(operand){
case tk_div:
@@ -9136,7 +9136,7 @@ COM_MOD *bmod;
cha2=ocha;
endoffile=0;
// printf("input=%08X inptr=%08X %s\n",input,inptr2,input+inptr2);
// if(bufrm)free(bufrm);
// if(bufrm) { free(bufrm); bufrm=NULL; }
// if(strinf.bufstr)free(strinf.bufstr);
bufrm=obuf;
strinf=ostr;
@@ -9746,7 +9746,7 @@ newloop:
else{
if(tok!=tk_number&&tok!=tk_postnumber&&tok!=tk_undefofs){
if(j>1)j=0;
if(bufrm)free(bufrm);
if(bufrm){ free(bufrm); bufrm=NULL; }
if(strinf.bufstr)free(strinf.bufstr);
}
else if(j>1)j--;