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 <troglobit@gmail.com>
(cherry picked from commit 73ebc7fb365cab993bc4f2cf4066f0865c99b14b)
This commit is contained in:
Joachim Wiberg committed 2026-11-20 17:51:33 +01:00
1 parent 0f01284ff2
commit 90523404b3
1 file changed
+1
+1
View File
@@ -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':