From c03bbbaecca7498cb5a25bc5d54f7b8e4b2eeab6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 6 Dec 2020 19:39:00 +0100 Subject: [PATCH] HWDB: Fixed memory leak --- lib/names.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.39.5