From e64105199949fa185f6211a81e3a32d60178502a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 19 Jan 2012 07:45:27 +0000 Subject: (parse_device) fix reading freed memory --- NEWS | 1 + hid.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 520d8ad..e0f1717 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - do not ignore /etc/modprobe.d/* +- fix reading freed memory Version 0.12.0 - 13 January 2012, Thierry Vignaud diff --git a/hid.c b/hid.c index be8d3c0..5671a66 100644 --- a/hid.c +++ b/hid.c @@ -116,7 +116,6 @@ 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(); } -- cgit v1.2.1