[libvirt] [PATCH] virsh: Free returned MIME type string

Michal Privoznik mprivozn at redhat.com
Mon Dec 12 15:07:17 UTC 2011


In terms of documentation to virDomainScreenshot, caller MUST free
returned value. But virsh was not.
---
Pushing under trivial rule.

 tools/virsh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index d859b3a..d58b827 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -3097,6 +3097,7 @@ cleanup:
     if (st)
         virStreamFree(st);
     VIR_FORCE_CLOSE(fd);
+    VIR_FREE(mime);
     return ret;
 }
 
-- 
1.7.3.4




More information about the libvir-list mailing list