From 90523404b368c9c9e154410df5c9367a07fe9006 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 20 Nov 2026 11:02:57 +0100 Subject: [PATCH] tmpfiles: free the glob result of an e entry An e entry leaked the path list from glob(). tmpfiles exits right after, so it only shows in a build with the address sanitizer, where LeakSanitizer makes tmpfiles exit with an error: tmpfiles --create e.conf Free the list when the entry is done. Signed-off-by: Joachim Wiberg (cherry picked from commit 73ebc7fb365cab993bc4f2cf4066f0865c99b14b) --- src/tmpfiles.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tmpfiles.c b/src/tmpfiles.c index c672ffa0..55d2337a 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -614,6 +614,7 @@ static void tmpfiles(char *line) if (dirperm(p, mode, uid, gid) && errno != ENOTDIR) warn("Failed setting mode/owner on %s", p); } + globfree(&gl); break; } case 'f':