mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-04 16:03:49 +00:00
virsh: Free returned MIME type string
In terms of documentation to virDomainScreenshot, caller MUST free returned value. But virsh was not.
This commit is contained in:
parent
dcaeb74a31
commit
0fe2b40d5a
@ -3097,6 +3097,7 @@ cleanup:
|
|||||||
if (st)
|
if (st)
|
||||||
virStreamFree(st);
|
virStreamFree(st);
|
||||||
VIR_FORCE_CLOSE(fd);
|
VIR_FORCE_CLOSE(fd);
|
||||||
|
VIR_FREE(mime);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user