Re: [PATCH] tests: Resolve Coverity RESOURCE_LEAK

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

 



On 04/15/2015 08:22 AM, John Ferlan wrote:
> Commit id 'b77ce18a2' added a new bitmap, but neglected to virBitmapFree it
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  tests/virbitmaptest.c | 1 +
>  1 file changed, 1 insertion(+)

ACK

> 
> diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
> index 9a84e4c..a6e9a38 100644
> --- a/tests/virbitmaptest.c
> +++ b/tests/virbitmaptest.c
> @@ -548,6 +548,7 @@ test10(const void *opaque ATTRIBUTE_UNUSED)
>      virBitmapFree(b1);
>      virBitmapFree(b2);
>      virBitmapFree(b3);
> +    virBitmapFree(b4);
>      return ret;
>  }
>  
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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