• J
    conf: fix use after free in virChrdevOpen · a32b4174
    Ján Tomko 提交于
    Don't free the stream on error if we've successfully added it
    to the hash table, since it will be freed by virChrdevHashEntryFree
    callback.
    
    Preserve the error message before calling virStreamFree, since it
    resets the error.
    
    Introduced by 47161382, crashing since 69218922.
    
    Reported by Sergey Fionov on libvir-list.
    a32b4174
virchrdev.c 12.2 KB