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>
This commit is contained in:
Joachim Wiberg committed 2026-11-20 11:03:05 +01:00
1 parent c94fd9c495
commit 73ebc7fb36
1 file changed
+1
+1
View File
@@ -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':