提交 819df255 编写于 作者: P Peter Krempa 提交者: Cole Robinson

conf: Remove callback from stream when freeing entries in console hash

When a domain has a active console connection and is destroyed the
callback is called on private data that no longer exist causing a
segfault.
(cherry picked from commit ba226d33)
上级 3883ef03
......@@ -222,6 +222,9 @@ static void virConsoleHashEntryFree(void *data,
const char *pty = name;
virStreamPtr st = data;
/* remove callback from stream */
virFDStreamSetInternalCloseCb(st, NULL, NULL, NULL);
/* free stream reference */
virStreamFree(st);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册