]> git.ipfire.org Git - thirdparty/libvirt.git/commit
pci: avoid memory leak on error
authorEric Blake <eblake@redhat.com>
Thu, 30 Jun 2011 23:35:46 +0000 (17:35 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 1 Jul 2011 22:46:20 +0000 (16:46 -0600)
commit95eaf7ba7f9e46c21e8e054d7ee3bb2dfe4fa26c
treee90417d18f8eb5ae67e6a18c5a5eaaefb1785ff7
parent9e8b7c15234a073314bfd7f449292c906390afd2
pci: avoid memory leak on error

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