From: Martin Mares Date: Sun, 6 Dec 2020 18:39:00 +0000 (+0100) Subject: HWDB: Fixed memory leak X-Git-Tag: v3.8.0~101 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c03bbbaecca7498cb5a25bc5d54f7b8e4b2eeab6;p=pciutils.git HWDB: Fixed memory leak --- diff --git a/lib/names.c b/lib/names.c index df04495..a4314f6 100644 --- a/lib/names.c +++ b/lib/names.c @@ -31,6 +31,7 @@ static char *id_lookup(struct pci_access *a, int flags, int cat, int id1, int id if (name = pci_id_hwdb_lookup(a, cat, id1, id2, id3, id4)) { pci_id_insert(a, cat, id1, id2, id3, id4, name, SRC_HWDB); + pci_mfree(name); continue; } }