]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Free returned MIME type string
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Dec 2011 14:57:28 +0000 (15:57 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Dec 2011 14:57:28 +0000 (15:57 +0100)
In terms of documentation to virDomainScreenshot, caller MUST free
returned value. But virsh was not.

tools/virsh.c

index d859b3adf5cdd411d89897b1f6f90a812394d905..d58b82771fe975ea9d20b3fcca337f4985b2769f 100644 (file)
@@ -3097,6 +3097,7 @@ cleanup:
     if (st)
         virStreamFree(st);
     VIR_FORCE_CLOSE(fd);
+    VIR_FREE(mime);
     return ret;
 }