Re: [PATCH 08/13] qemumonitortestutils: Resolve resource leaks found by Valgrind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 06, 2013 at 04:35:42PM -0500, John Ferlan wrote:
> When Valgrind runs the 'qemumonitorjsontest' it would claim that the
> thread created is leaked. That's because the virThreadJoin won't get
> called due to the 'running' flag being cleared.  In order to avoid that,
> call virThreadJoin unconditionally at cleanup time.  Also noted that the
> qemuMonitorTestWorker() didn't get the test mutex lock on the failure path.
> 
> The incoming and outgoing buffers allocated by qemuMonitorTestIO() and
> qemuMonitorTestAddReponse() were never VIR_FREE()'d in qemuMonitorTestFree().
> ---
>  tests/qemumonitortestutils.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

AKC


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]