diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-25 19:51:31 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-25 19:51:31 -0700 |
commit | 981f4416220e01a3eab92aa3c8d03c16dcad450d (patch) | |
tree | 9eac431f6874d24c044f7236c1659891f97dad04 | |
parent | 013d376e47dc68ec385e9f88d6bc6c07c921ee1a (diff) |
Fix memory leak
-rw-r--r-- | src/device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index b694d299..c998eb09 100644 --- a/src/device.c +++ b/src/device.c @@ -915,8 +915,10 @@ static void update_services(struct browse_req *req, sdp_list_t *recs) } /* Check for duplicates */ - if (sdp_list_find(req->records, rec, rec_cmp)) + if (sdp_list_find(req->records, rec, rec_cmp)) { + g_free(uuid_str); continue; + } store_record(srcaddr, dstaddr, rec); |