Re: [PATCH v2 06/12] qemu: fix bugs in blockstats

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

 



On 12/17/2014 04:57 AM, John Ferlan wrote:
> 
> 
> On 12/16/2014 06:53 PM, Eric Blake wrote:
>> On 12/16/2014 06:17 AM, John Ferlan wrote:
>>>
>>> Ran the series through my local Coverity checker.... found one issue....
>>>

>> I didn't see an explicit ACK on this patch, but as 7/12 is the same
>> material just refactored, I'll go ahead and push the corrected form of
>> this at the same time as that one.
>>
> Coverity complained this morning because there's a call to
> virStorageFileGetMetadataFromBuf in the block just before this:
> 
> (18) Event alloc_fn: 	Storage is returned from allocation function "virStorageFileGetMetadataFromBuf". [details]
> (19) Event var_assign: 	Assigning: "meta" = storage returned from "virStorageFileGetMetadataFromBuf(src->path, buf, len, format, NULL)".
> (20) Event cond_false: 	Condition "!(meta = virStorageFileGetMetadataFromBuf(src->path, buf, len, format, NULL))", taking false branch
> Also see events: 	[overwrite_var]

Blah. In all my rebasing, I duplicated a line, and indeed caused a
memory leak.  Trivial patch coming up soon.

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