提交 c0e65ae5 编写于 作者: E Eric Blake

remote: avoid leak on failure

Detected by Coverity.  Only possible in OOM situations.

* daemon/remote.c (remoteDispatchDomainScreenshot): Plug leak.
上级 0a41733c
......@@ -1453,6 +1453,7 @@ remoteDispatchDomainScreenshot(struct qemud_server *server ATTRIBUTE_UNUSED,
*mime_p = strdup(mime);
if (*mime_p == NULL) {
virReportOOMError();
VIR_FREE(mime_p);
goto cleanup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册