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

argument.

Reported by:	kib@
This commit is contained in:
araujo 2018-05-25 19:12:30 +00:00
parent 25f3649948
commit 2d1010154c

View File

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