提交 b1f6792c 编写于 作者: P Pavel Hrdina

virsh-domain: fix memory leak in cmdDomDisplay

Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 378ef3df
......@@ -10637,8 +10637,10 @@ cmdDomDisplay(vshControl *ctl, const vshCmd *cmd)
* fails, if there is no listen_addr we will print "localhost". */
VIR_FREE(listen_addr);
if (uri && VIR_STRDUP(listen_addr, uri->server) < 0)
goto cleanup;
if (uri) {
listen_addr = vshStrdup(ctl, uri->server);
virURIFree(uri);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册