summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2021-01-17 10:24:29 +0100
committerSusant Sahani <ssahani@vmware.com>2021-01-17 14:25:10 +0100
commit15c69d07002b6f10dce3ce987954d63eee0a69e0 (patch)
tree6619b7cea5181bd09b3f928a4f11e5bfe05e7d39 /src/resolve
parent276abbeebc43a784b9a19983e66f694f79e5b3ad (diff)
downloadsystemd-15c69d07002b6f10dce3ce987954d63eee0a69e0.tar.gz
resolved-dnssd: Use TAKE_PTR
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dnssd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dnssd.c b/src/resolve/resolved-dnssd.c
index 159960ed8b..34c96e18bd 100644
--- a/src/resolve/resolved-dnssd.c
+++ b/src/resolve/resolved-dnssd.c
@@ -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;
}