mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
resolved-dnssd: Use TAKE_PTR
This commit is contained in:
parent
276abbeebc
commit
15c69d0700
@ -117,7 +117,7 @@ static int dnssd_service_load(Manager *manager, const char *filename) {
|
||||
return r;
|
||||
|
||||
LIST_PREPEND(items, service->txt_data_items, txt_data);
|
||||
txt_data = NULL;
|
||||
TAKE_PTR(txt_data);
|
||||
}
|
||||
|
||||
r = hashmap_ensure_put(&manager->dnssd_services, &string_hash_ops, service->name, service);
|
||||
@ -130,7 +130,7 @@ static int dnssd_service_load(Manager *manager, const char *filename) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
service = NULL;
|
||||
TAKE_PTR(service);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user