]> xenbits.xensource.com Git - libvirt.git/commit
pci: change stubDriver from const char* to char*
authorLaine Stump <laine@laine.org>
Fri, 31 May 2013 18:26:56 +0000 (14:26 -0400)
committerLaine Stump <laine@laine.org>
Mon, 24 Jun 2013 21:33:29 +0000 (17:33 -0400)
commit53e52b4ac336d5775e994cf8c79aa7444f44ce1a
treef6edc91313d06d5168660bbb0412cfaf494460ab
parentd80d0d5d4052f245fc2827d241c0e9bab92e5e07
pci: change stubDriver from const char* to char*

Previously stubDriver was always set from a string literal, so it was
okay to use a const char * that wasn't freed when the virPCIDevice was
freed. This will not be the case in the near future, so it is now a
char* that is allocated in virPCIDeviceSetStubDriver() and freed
during virPCIDeviceFree().
src/qemu/qemu_driver.c
src/qemu/qemu_hostdev.c
src/util/virpci.c
src/util/virpci.h
src/xen/xen_driver.c