]> xenbits.xensource.com Git - libvirt.git/commit
bhyve: don't leak tap devices on failures
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 30 Mar 2014 12:23:47 +0000 (16:23 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 31 Mar 2014 12:54:30 +0000 (16:54 +0400)
commit1d8be343343886a610285169543342b1496dbfe5
tree6c4f66be6398115458007932588225f6c3496370
parent4ef09c4690711706c250ee5c6d2902bde34afc96
bhyve: don't leak tap devices on failures

On failures, virBhyveProcessStart() does not cleanup network
interfaces that could be created by virBhyveProcessBuildBhyveCmd(),
which results in a leaked tap device.

To fix that, extract network cleanup code to bhyveNetCleanup()
and use it in cleanup stage of virBhyveProcessStart().
src/bhyve/bhyve_process.c