]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: free messages after logging them to a file
authorJán Tomko <jtomko@redhat.com>
Tue, 27 Aug 2013 11:07:27 +0000 (13:07 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 28 Aug 2013 06:05:56 +0000 (08:05 +0200)
commit66d124b45472addc10d286ca291aa5411fcb381f
tree5c9e7f9eb4deffa1cb7d6e15eaea086b78c95b63
parent2d9185a9f3cda5c45a8187de9e24088ba7cb18a0
virsh: free messages after logging them to a file

The messages were only freed on error.

==12== 1,100 bytes in 1 blocks are definitely lost in loss record 698 of 729
==12==    by 0x4E98C22: virBufferAsprintf (virbuffer.c:294)
==12==    by 0x12C950: vshOutputLogFile (virsh.c:2440)
==12==    by 0x12880B: vshError (virsh.c:2254)
==12==    by 0x131957: vshCommandOptDomainBy (virsh-domain.c:109)
==12==    by 0x14253E: cmdStart (virsh-domain.c:3333)

https://bugzilla.redhat.com/show_bug.cgi?id=1001536
tools/virsh.c