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:
Michal Privoznik 2011-12-12 15:57:28 +01:00
parent dcaeb74a31
commit 0fe2b40d5a

View File

@ -3097,6 +3097,7 @@ cleanup:
if (st)
virStreamFree(st);
VIR_FORCE_CLOSE(fd);
VIR_FREE(mime);
return ret;
}