breakp2.c: plug some tiny memory leaks
This commit is contained in:
parent
777fe07e83
commit
0c503429e0
|
|
@ -148,12 +148,12 @@ copynode(char *s)
|
|||
|
||||
if (strstr(s, "("))
|
||||
s = stripWhiteSpacesInsideParens(s);
|
||||
else
|
||||
s = copy(s);
|
||||
|
||||
l = strrchr(s, '('/*)*/);
|
||||
if (!l) {
|
||||
ret = copy(s);
|
||||
return ret;
|
||||
}
|
||||
if (!l)
|
||||
return s;
|
||||
|
||||
r = strchr(s, /*(*/')');
|
||||
*r = '\0';
|
||||
|
|
@ -164,5 +164,6 @@ copynode(char *s)
|
|||
} else
|
||||
ret = copy(l + 1);
|
||||
|
||||
tfree(s);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue