breakp2.c: plug some tiny memory leaks

This commit is contained in:
h_vogt 2013-08-20 19:47:10 +02:00 committed by rlar
parent 777fe07e83
commit 0c503429e0
1 changed files with 5 additions and 4 deletions

View File

@ -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;
}