diff options
author | Susant Sahani <ssahani@vmware.com> | 2021-01-17 10:24:29 +0100 |
---|---|---|
committer | Susant Sahani <ssahani@vmware.com> | 2021-01-17 14:25:10 +0100 |
commit | 15c69d07002b6f10dce3ce987954d63eee0a69e0 (patch) | |
tree | 6619b7cea5181bd09b3f928a4f11e5bfe05e7d39 /src/resolve | |
parent | 276abbeebc43a784b9a19983e66f694f79e5b3ad (diff) | |
download | systemd-15c69d07002b6f10dce3ce987954d63eee0a69e0.tar.gz |
resolved-dnssd: Use TAKE_PTR
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dnssd.c | 4 |
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; } |