1
1
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:
Susant Sahani 2021-01-17 10:24:29 +01:00
parent 276abbeebc
commit 15c69d0700

View File

@ -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;
}