• M
    parallels: Cleanup partly opened drivers on connect open failure · 6954e7da
    Michal Privoznik 提交于
    Well, the parallelsConnectOpen() joins several sub-driver openings
    into one big if condition. If any of sub-driver fails to open, the
    whole API finishes immediately. The problem is, sub-drivers may have
    left some memory allocated. Fortunately, we have a free function for
    that: parallelsConnectClose(). This is, however, not prepared for
    partially allocated driver structure. So, prepare the free function
    for it and call it at the right place, in the if body.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    6954e7da
parallels_driver.c 28.1 KB