We don't need check if str is NULL as free(3) will handle NULL

argument.

Reported by:	kib@
This commit is contained in:
Marcelo Araujo 2018-05-25 19:12:30 +00:00
parent d3a60796db
commit 13ee81bed5

View File

@ -255,8 +255,7 @@ topology_parse(const char *opt)
return(0);
out:
if (str != NULL)
free(str);
free(str);
return (-1);
}