summaryrefslogtreecommitdiffstats
path: root/hid.c
diff options
context:
space:
mode:
Diffstat (limited to 'hid.c')
-rw-r--r--hid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hid.c b/hid.c
index 2103c00..be8d3c0 100644
--- a/hid.c
+++ b/hid.c
@@ -116,6 +116,8 @@ static void parse_device(struct hid_entries *entries, const char *dev)
DEBUG("%s: module name is [%s]\n", HID_BUS_NAME, modname);
if (modname != NULL)
add_entry(entries, device_name, modname);
+ free(device_name);
+ modalias_cleanup();
}