mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
remote: avoid leak on failure
Detected by Coverity. Only possible in OOM situations. * daemon/remote.c (remoteDispatchDomainScreenshot): Plug leak.
This commit is contained in:
parent
0a41733c13
commit
c0e65ae5b2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user