diff options
-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; } |