• J
    libxl: unref objects in error paths · e4f1be7e
    Jim Fehlig 提交于
    libxlMakeNic opens a virConnect object and takes a reference on a
    virNetwork object, but doesn't drop the references on all error
    paths. Rework the function to follow the standard libvirt pattern
    of using a local 'ret' variable to hold the function return value,
    performing all cleanup and returning 'ret' at a 'cleanup' label.
    e4f1be7e
libxl_conf.c 67.8 KB