提交 ba226d33 编写于 作者: P Peter Krempa

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.
上级 7550bc66
......@@ -219,6 +219,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.
先完成此消息的编辑!
想要评论请 注册