mirror of
https://github.com/troglobit/finit.git
synced 2026-11-20 19:41:51 +00:00
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:
1 file changed
+1
@@ -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':
|
||||
|
||||
Reference in new issue
Block a user