summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.com>2014-02-19 15:23:40 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2014-02-20 11:01:46 +1000
commit3d7a6eb533cfbad4aafa018ece9af2e1b488a798 (patch)
tree3baefb95a2e4815ab5bd23bc1f65446d6f5e0964
parent93d232ac0140251b9b3ee4fe6e11ee65553f8284 (diff)
Free (WacomToolPtr)->name when freeing the tool list
Currently the name member is set in wcmParseSerials() only, however it is dynamically allocated. thus free it when destroying the structure which contains it. Signed-off-by: Egbert Eich <eich@suse.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/wcmCommon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index a0db134..afc09f9 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1499,6 +1499,7 @@ void wcmFreeCommon(WacomCommonPtr *ptr)
common->serials->serial,
common->serials->name);
+ free(common->serials->name);
next = common->serials->next;
free(common->serials);
common->serials = next;