aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2018-06-03 13:38:49 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-06-03 15:50:08 -0700
commit9a973774a449ac299dae18e347d84cd2f58ca025 (patch)
tree9916a7b5cb1c278293d378c6c3d6ce9ad6a51d98
parent876904323e12786a65ac14fc2c67e22fe587fa96 (diff)
pci.c: fix memory leak
Signed-off-by: Burt P <pburt0@gmail.com>
-rw-r--r--modules/devices/pci.c2
1 files changed, 2 insertions, 0 deletions
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);