]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: Use TAKE_PTR
authorSusant Sahani <ssahani@vmware.com>
Wed, 20 Jan 2021 12:54:59 +0000 (13:54 +0100)
committerSusant Sahani <ssahani@vmware.com>
Wed, 20 Jan 2021 14:13:13 +0000 (15:13 +0100)
src/libsystemd/sd-device/device-monitor.c

index 72f04ee3526c6158ba295e13a3f2de07c2d43ab2..48f3c707e30d11a067f13572149cc27cbea012b1 100644 (file)
@@ -736,7 +736,9 @@ _public_ int sd_device_monitor_filter_add_match_subsystem_devtype(sd_device_moni
         if (r < 0)
                 return r;
 
-        s = d = NULL;
+        TAKE_PTR(s);
+        TAKE_PTR(d);
+
         m->filter_uptodate = false;
 
         return 0;