mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 89439 and 89458
This commit is contained in:
parent
0da93b0d43
commit
29dabbd900
1 changed files with 4 additions and 1 deletions
|
@ -872,8 +872,11 @@ same_user(char *user1, char *user2)
|
||||||
str1 = get_head(user1, '@');
|
str1 = get_head(user1, '@');
|
||||||
str2 = get_head(user2, '@');
|
str2 = get_head(user2, '@');
|
||||||
|
|
||||||
if (str1 == NULL || str2 == NULL)
|
if (str1 == NULL || str2 == NULL) {
|
||||||
|
free(str1);
|
||||||
|
free(str2); /* Handle if only one alloc success */
|
||||||
return(B_FALSE);
|
return(B_FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp(str1, str2)) {
|
if (strcmp(str1, str2)) {
|
||||||
free(str1);
|
free(str1);
|
||||||
|
|
Loading…
Reference in a new issue