diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-09 19:45:03 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-09 19:45:03 +0000 |
commit | f0df55b724be2779864edab88dde9c60ce31ed2b (patch) | |
tree | 3a2121b14eecd3243444502e3ba8ba2b2c1ac012 | |
parent | e5053d8e51a7c518159c52e872ca3e8298fe30cf (diff) | |
download | ldetect-f0df55b724be2779864edab88dde9c60ce31ed2b.tar ldetect-f0df55b724be2779864edab88dde9c60ce31ed2b.tar.gz ldetect-f0df55b724be2779864edab88dde9c60ce31ed2b.tar.bz2 ldetect-f0df55b724be2779864edab88dde9c60ce31ed2b.tar.xz ldetect-f0df55b724be2779864edab88dde9c60ce31ed2b.zip |
(parse_device,modalias_cleanup) plug last (small) memleaks
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | hid.c | 2 | ||||
-rw-r--r-- | modalias.c | 2 |
3 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- plug last (small) memleaks + Version 0.11.5 - 8 January 2012, Thierry Vignaud - fix double free @@ -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(); } @@ -125,4 +125,6 @@ char *modalias_resolve_module(const char *modalias) { void modalias_cleanup(void) { ifree(aliasdefault); + free(version); + version = NULL; } |