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

12 Dec
2011
12 Dec
'11
4:07 p.m.
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
5023
Age (days ago)
5023
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michal Privoznik