]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pcrextend: fix memory leak
authorLennart Poettering <lennart@amutable.com>
Wed, 18 Feb 2026 15:54:58 +0000 (16:54 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Feb 2026 17:25:08 +0000 (18:25 +0100)
Follow-up for: #40648
Addresses: https://github.com/systemd/systemd/pull/40648#issuecomment-3917469644

src/shared/pcrextend-util.c

index e4d3b958a87c06e2f084827620ce8464398d8c2c..431db8cc157d8f81c70de3296394fc53a177996a 100644 (file)
@@ -260,7 +260,7 @@ int pcrextend_verity_now(
         if (r < 0)
                 return r;
 
-        _cleanup_free_ sd_varlink *vl = NULL;
+        _cleanup_(sd_varlink_unrefp) sd_varlink *vl = NULL;
         r = sd_varlink_connect_address(&vl, "/run/systemd/io.systemd.PCRExtend");
         if (r < 0)
                 return r;