]> git.ipfire.org Git - thirdparty/libvirt.git/commit
usbGetDevice: don't leak a "usbDevice" buffer on failure path
authorJim Meyering <meyering@redhat.com>
Mon, 25 Jan 2010 15:44:13 +0000 (16:44 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 25 Jan 2010 16:07:06 +0000 (17:07 +0100)
commit3dc4268669cd1149539919c869ebbf769ab5fc35
tree0b17686202ccdc14d059557ec563fbab5255c1bc
parent9827e0a42cccf8046709e4199ef11f2fc8ae8f3d
usbGetDevice: don't leak a "usbDevice" buffer on failure path

* src/util/hostusb.c (usbGetDevice): Free "dev" when returning NULL.
src/util/hostusb.c