From: Lennart Poettering Date: Wed, 18 Feb 2026 15:54:58 +0000 (+0100) Subject: pcrextend: fix memory leak X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b7d5a2844c6fb08dc2bc62bef25da46a36793e9;p=thirdparty%2Fsystemd.git pcrextend: fix memory leak Follow-up for: #40648 Addresses: https://github.com/systemd/systemd/pull/40648#issuecomment-3917469644 --- diff --git a/src/shared/pcrextend-util.c b/src/shared/pcrextend-util.c index e4d3b958a87..431db8cc157 100644 --- a/src/shared/pcrextend-util.c +++ b/src/shared/pcrextend-util.c @@ -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;