]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorDispose: Reset lastError
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Nov 2013 10:50:26 +0000 (11:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Nov 2013 18:03:30 +0000 (19:03 +0100)
commit9cc8a5af02f09e96cd552bffbe0d7ad34a81ecae
tree956b33c53440df7c4564b0967784e516e3e85277
parent1502029100dea658a382d8a4e442e4a0769e54c7
qemuMonitorDispose: Reset lastError

Since the 90139a62 commit the error is copied into mon->lastError but
it's never freed from there.

==31989== 395 bytes in 1 blocks are definitely lost in loss record 877 of 978
==31989==    at 0x4A06C2B: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==31989==    by 0x7EAF129: strdup (in /lib64/libc-2.15.so)
==31989==    by 0x50D586C: virStrdup (virstring.c:554)
==31989==    by 0x50976C1: virCopyError (virerror.c:191)
==31989==    by 0x5097A35: virCopyLastError (virerror.c:312)
==31989==    by 0x114909A9: qemuMonitorIO (qemu_monitor.c:690)
==31989==    by 0x509BEDE: virEventPollDispatchHandles (vireventpoll.c:501)
==31989==    by 0x509C701: virEventPollRunOnce (vireventpoll.c:648)
==31989==    by 0x509A620: virEventRunDefaultImpl (virevent.c:274)
==31989==    by 0x520D21C: virNetServerRun (virnetserver.c:1112)
==31989==    by 0x11F368: main (libvirtd.c:1513)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor.c