From 9a973774a449ac299dae18e347d84cd2f58ca025 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 3 Jun 2018 13:38:49 -0500 Subject: pci.c: fix memory leak Signed-off-by: Burt P --- modules/devices/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/devices/pci.c b/modules/devices/pci.c index e4a64cdd..332ea448 100644 --- a/modules/devices/pci.c +++ b/modules/devices/pci.c @@ -123,6 +123,8 @@ static void _pci_dev(const pcid *p) { _("Function"), p->function ); + g_free(pcie_str); + moreinfo_add_with_prefix("DEV", key, str); /* str now owned by morinfo */ g_free(vendor_device_str); -- cgit v1.2.3