From 73ebc7fb365cab993bc4f2cf4066f0865c99b14b 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 --- src/tmpfiles.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tmpfiles.c b/src/tmpfiles.c index a209f51a..1d63d70a 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -585,6 +585,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':