summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-05 19:06:29 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-05 19:06:29 +0000
commitfe1975bcae657f585b370ada3bfaf44e4d277c02 (patch)
tree72580874d50330e473815895ef1e326755392551
parentccc2ce46b670860a4c618394fd61a57c71f97117 (diff)
downloadldetect-fe1975bcae657f585b370ada3bfaf44e4d277c02.tar
ldetect-fe1975bcae657f585b370ada3bfaf44e4d277c02.tar.gz
ldetect-fe1975bcae657f585b370ada3bfaf44e4d277c02.tar.bz2
ldetect-fe1975bcae657f585b370ada3bfaf44e4d277c02.tar.xz
ldetect-fe1975bcae657f585b370ada3bfaf44e4d277c02.zip
(pciusb_free) fix small memleak
(introduced in r44672 by tv on 2007-02-26 ("(pci_probe) get PCI class as reported by pciutils...")
-rw-r--r--NEWS2
-rw-r--r--pciusb.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 70275c0..6b5c835 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- plug some memleaks
+
Version 0.11.3 - 21 November 2011, Thierry Vignaud
- make sure to behave properly on errors in libmodprobe (#3309)
diff --git a/pciusb.c b/pciusb.c
index 44ea39a..b011873 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -190,6 +190,7 @@ extern void pciusb_free(struct pciusb_entries *entries) {
struct pciusb_entry *e = &entries->entries[i];
ifree(e->module);
ifree(e->text);
+ ifree(e->class);
}
if (entries->nb) ifree(entries->entries);
}