We don't need check if str is NULL as free(3) will handle NULL
argument. Reported by: kib@
This commit is contained in:
parent
25f3649948
commit
2d1010154c
@ -255,8 +255,7 @@ topology_parse(const char *opt)
|
||||
return(0);
|
||||
|
||||
out:
|
||||
if (str != NULL)
|
||||
free(str);
|
||||
free(str);
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user