Re: [PATCH] tests: Free test at the end of GetDeviceAliases JSON test

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

 



On 22.07.2013 15:57, Jiri Denemark wrote:
> Commit 58b147ad07c9432b53e66ca20aff74d812647c57 added a test for
> qemuMonitorGetDeviceAliases but forgot to free the test object at the
> end which causes all sort of weird errors and failures when new tests
> are added after the GetDeviceAliases.
> ---
>  tests/qemumonitorjsontest.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c
> index 4061a0c..9e66059 100644
> --- a/tests/qemumonitorjsontest.c
> +++ b/tests/qemumonitorjsontest.c
> @@ -938,6 +938,7 @@ testQemuMonitorJSONGetDeviceAliases(const void *data)
>  
>  cleanup:
>      virStringFreeList(aliases);
> +    qemuMonitorTestFree(test);
>      return ret;
>  }
>  
> 

ACK

Michal

--
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]