summaryrefslogtreecommitdiffstats
path: root/hid.c
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-19 07:45:27 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-19 07:45:27 +0000
commite64105199949fa185f6211a81e3a32d60178502a (patch)
tree0d25cbc62c32f06ba427645152703ee12f66902b /hid.c
parentea07550f6f781b299b026c81bcb9904d911ab47f (diff)
downloadldetect-e64105199949fa185f6211a81e3a32d60178502a.tar
ldetect-e64105199949fa185f6211a81e3a32d60178502a.tar.gz
ldetect-e64105199949fa185f6211a81e3a32d60178502a.tar.bz2
ldetect-e64105199949fa185f6211a81e3a32d60178502a.tar.xz
ldetect-e64105199949fa185f6211a81e3a32d60178502a.zip
(parse_device) fix reading freed memory
Diffstat (limited to 'hid.c')
-rw-r--r--hid.c1
1 files changed, 0 insertions, 1 deletions
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();
}