svn commit: r344159 - head/usr.sbin/bhyve
Rodney W. Grimes
rgrimes at FreeBSD.org
Fri Feb 15 16:20:22 UTC 2019
Author: rgrimes
Date: Fri Feb 15 16:20:21 2019
New Revision: 344159
URL: https://svnweb.freebsd.org/changeset/base/344159
Log:
In r340042 an attempt to quiet coverity warning cid 1305412 was overdone.
nopt is the only allocated space,
xopt and cp are aliases into that allocated space.
Remove the 2 unneeded free's
Reported by: Patrick Mooney (@pmooney_pfmooney.com)
Reviewed by: jhb (maintainer), Patrick Mooney (joyent/illumos)
Approved by: bde (mentor)
CID: 1305412
MFC after: 3 days
MFC with: 340042
Differential Revision: https://reviews.freebsd.org/D19200
Modified:
head/usr.sbin/bhyve/block_if.c
Modified: head/usr.sbin/bhyve/block_if.c
==============================================================================
--- head/usr.sbin/bhyve/block_if.c Fri Feb 15 11:36:16 2019 (r344158)
+++ head/usr.sbin/bhyve/block_if.c Fri Feb 15 16:20:21 2019 (r344159)
@@ -576,8 +576,6 @@ blockif_open(const char *optstr, const char *ident)
err:
if (fd >= 0)
close(fd);
- free(cp);
- free(xopts);
free(nopt);
return (NULL);
}
More information about the svn-src-head
mailing list