mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
[MAN]
Fix memory leaks svn path=/trunk/; revision=54032
This commit is contained in:
parent
c89df83f91
commit
ae16f78ede
1 changed files with 5 additions and 4 deletions
|
@ -62,8 +62,8 @@ OpenF(char* name)
|
||||||
else
|
else
|
||||||
retval=-1;
|
retval=-1;
|
||||||
|
|
||||||
strcpy(manpath_local, manpath);
|
free(manpath_local);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -142,14 +142,12 @@ void th_outp(char *cur_string, char *THtag)
|
||||||
|
|
||||||
void text_outp(char *cur_string)
|
void text_outp(char *cur_string)
|
||||||
{
|
{
|
||||||
char TagFlag=0;
|
|
||||||
int symbol=0;
|
int symbol=0;
|
||||||
|
|
||||||
if(cur_string[0]=='.')
|
if(cur_string[0]=='.')
|
||||||
while(cur_string[symbol]!=' ')
|
while(cur_string[symbol]!=' ')
|
||||||
symbol++;
|
symbol++;
|
||||||
|
|
||||||
if(symbol) TagFlag=1;
|
|
||||||
|
|
||||||
for(;cur_string[symbol]!='\n'; symbol++)
|
for(;cur_string[symbol]!='\n'; symbol++)
|
||||||
putchar(cur_string[symbol]);
|
putchar(cur_string[symbol]);
|
||||||
|
@ -212,6 +210,9 @@ AnalyzeFile()
|
||||||
else text_outp(cur_string); // print plane text
|
else text_outp(cur_string); // print plane text
|
||||||
th_outp(cur_string, THtag);
|
th_outp(cur_string, THtag);
|
||||||
/* END of TAGs processing */
|
/* END of TAGs processing */
|
||||||
|
free(cur_string);
|
||||||
|
free(THtag);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue