commit | b358f4f350211dfd9d52a0b4fbc611b0c711bcdd | [log] [tgz] |
---|---|---|
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | Wed Mar 23 09:20:52 2011 -0300 |
committer | Johan Hedberg <johan.hedberg@nokia.com> | Wed Mar 23 15:23:39 2011 +0200 |
tree | 50f31d0e4e7fb9ed36907ec2ada5fc018c8f215d | |
parent | 521006ef7b0737739e4e2c66564ed458a348f566 [diff] |
Fix memory leak of matched device drivers list
diff --git a/src/device.c b/src/device.c index b4d13f2..771a908 100644 --- a/src/device.c +++ b/src/device.c
@@ -1111,8 +1111,7 @@ /* match pattern driver */ match = device_match_pattern(device, *uuid, profiles); - for (; match; match = match->next) - uuids = g_slist_append(uuids, match->data); + uuids = g_slist_concat(uuids, match); } return uuids;