2011/4/6 Wen Congyang <wency@xxxxxxxxxxxxxx>: > This bug was introduce by commit 57162db8, and it will cause libvirtd crashed. > > --- > Âsrc/util/pci.c | Â Â2 +- > Â1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/util/pci.c b/src/util/pci.c > index 6ed96f4..a7b8caa 100644 > --- a/src/util/pci.c > +++ b/src/util/pci.c > @@ -1180,7 +1180,7 @@ pciWaitForDeviceCleanup(pciDevice *dev, const char *matcher) > Âstatic char * > ÂpciReadDeviceID(pciDevice *dev, const char *id_name) > Â{ > - Â Âchar *path; > + Â Âchar *path = NULL; > Â Â char *id_str; > > Â Â if (pciDeviceFile(&path, dev->name, id_name) < 0) { > -- > 1.7.1 > Oops... shows that I didn't tests this well enough :( ACK. Maybe you could make the commit summary more verbose, for example "pci: avoid invalid free, init path to NULL". Matthias -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list