Fix memory leaks
svn path=/trunk/; revision=54032
else
retval=-1;
- strcpy(manpath_local, manpath);
- return retval;
+ free(manpath_local);
+ return retval;
}
int
void text_outp(char *cur_string)
{
- char TagFlag=0;
int symbol=0;
if(cur_string[0]=='.')
while(cur_string[symbol]!=' ')
symbol++;
- if(symbol) TagFlag=1;
for(;cur_string[symbol]!='\n'; symbol++)
putchar(cur_string[symbol]);
else text_outp(cur_string); // print plane text
th_outp(cur_string, THtag);
/* END of TAGs processing */
+ free(cur_string);
+ free(THtag);
+
return 0;
}