• M
    security_manager.c: Append seclabel iff generated · a1c68a1f
    Michal Privoznik 提交于
    With my previous patches, we unconditionally appended a seclabel,
    even if it wasn't generated but found in array of defined seclabels.
    This resulted in double free later when doing virDomainDefFree
    and iterating over the array of defined seclabels.
    
    Moreover, there was another possibility of double free, if the
    seclabel was generated in the last iteration of the process of
    walking trough security managers array.
    a1c68a1f
security_manager.c 20.8 KB