diff --git a/usr.sbin/bhyve/block_if.c b/usr.sbin/bhyve/block_if.c index 09b5fcba40fa..c99fcd859714 100644 --- a/usr.sbin/bhyve/block_if.c +++ b/usr.sbin/bhyve/block_if.c @@ -573,6 +573,9 @@ blockif_open(const char *optstr, const char *ident) err: if (fd >= 0) close(fd); + free(cp); + free(xopts); + free(nopt); return (NULL); }