• J
    Set the number of elements 0 in virNetwork*Clear · f32ea993
    Ján Tomko 提交于
    Decrementing it when it was already 0 causes an invalid free
    in virNetworkDefUpdateDNSHost if virNetworkDNSHostDefParseXML
    fails and virNetworkDNSHostDefClear gets called twice.
    
    virNetworkForwardDefClear left the number untouched even if it
    freed all the elements.
    (cherry picked from commit c4e23388)
    f32ea993
network_conf.c 124.8 KB