bhyvectl: don't leak nvlist in send_message
Reviewed by: corvink, markj MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38900
This commit is contained in:
parent
b64ba24264
commit
942525ab47
@ -1704,9 +1704,9 @@ send_message(const char *vmname, nvlist_t *nvl)
|
||||
perror("nvlist_send() failed");
|
||||
err = errno;
|
||||
}
|
||||
done:
|
||||
nvlist_destroy(nvl);
|
||||
|
||||
done:
|
||||
if (socket_fd >= 0)
|
||||
close(socket_fd);
|
||||
return (err);
|
||||
|
Loading…
Reference in New Issue
Block a user