1d8be34 bhyve: don't leak tap devices on failures

Authored and Committed by Roman Bogorodskiy 10 years ago
    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().
    
        
file modified
+22 -12