svn commit: r334219 - head/usr.sbin/bhyve
Marcelo Araujo
araujo at FreeBSD.org
Fri May 25 19:12:32 UTC 2018
Author: araujo
Date: Fri May 25 19:12:30 2018
New Revision: 334219
URL: https://svnweb.freebsd.org/changeset/base/334219
Log:
We don't need check if str is NULL as free(3) will handle NULL
argument.
Reported by: kib@
Modified:
head/usr.sbin/bhyve/bhyverun.c
Modified: head/usr.sbin/bhyve/bhyverun.c
==============================================================================
--- head/usr.sbin/bhyve/bhyverun.c Fri May 25 19:00:28 2018 (r334218)
+++ head/usr.sbin/bhyve/bhyverun.c Fri May 25 19:12:30 2018 (r334219)
@@ -255,8 +255,7 @@ topology_parse(const char *opt)
return(0);
out:
- if (str != NULL)
- free(str);
+ free(str);
return (-1);
}
More information about the svn-src-all
mailing list