[libvirt] [PATCH 4/4] pci: avoid memory leak on error

Eric Blake eblake at redhat.com
Fri Jul 1 22:49:53 UTC 2011


On 06/30/2011 07:13 PM, Wen Congyang wrote:
> At 07/01/2011 07:36 AM, Eric Blake Write:
>> Detected by Coverity.  Some, but not all, error paths were clean;
>> but they were repetitive so I refactored them.
>>
>> * src/util/pci.c (pciGetDevice): Plug leak.
>> ---
>>  src/util/pci.c |   31 +++++++++++++++----------------
>>  1 files changed, 15 insertions(+), 16 deletions(-)
>>
> 
> ACK

Thanks; 1, 2, and 4 now pushed.  I'll revise 3 for my next round of
Coverity findings.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110701/e99bcc9e/attachment-0001.sig>


More information about the libvir-list mailing list