From 981f4416220e01a3eab92aa3c8d03c16dcad450d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 25 Sep 2008 19:51:31 -0700 Subject: Fix memory leak --- src/device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/device.c') 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); -- cgit