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
d3a60796db
commit
13ee81bed5
@ -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