• P
    conf: Remove console stream callback only when freeing console helper · 2fd84d39
    Peter Krempa 提交于
    Commit ba226d33 tried to fix crash of
    the daemon when a domain with an open console was destroyed. The fix was
    wrong as it tried to remove the callback also when the stream was
    aborted, where at that point the fd stream driver was already freed and
    removed.
    
    This patch clears the callbacks with a helper right before the hash is
    freed, so that it doesn't interfere with other codepaths where the
    stream object is freed.
    (cherry picked from commit 45edefc7)
    2fd84d39
virconsole.c 11.5 KB