Diff between 753248f1d87f5973c667d9dd22a20a06240e60bf and 8f498abd339abdb65a6458b82a0d8c029e34f2ef
Changed Files
| File | Additions | Deletions | Status |
| src/storage.c | +3 | -1 | modified |
Full Patch
diff --git a/src/storage.c b/src/storage.c
index 375974a..be3bbf2 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -180,8 +180,10 @@ sdp_record_t *find_record_in_list(sdp_list_t *recs, const char *uuid)
/* Extract the uuid */
uuid_str = bt_uuid2string(svcclass->data);
- if (!uuid_str)
+ if (!uuid_str) {
+ sdp_list_free(svcclass, free);
continue;
+ }
if (!strcasecmp(uuid_str, uuid)) {
sdp_list_free(svcclass, free);