summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
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);