mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +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>
This commit is contained in:
1 file changed
+1
@@ -585,6 +585,7 @@ static void tmpfiles(char *line)
|
|||||||
if (dirperm(p, mode, uid, gid) && errno != ENOTDIR)
|
if (dirperm(p, mode, uid, gid) && errno != ENOTDIR)
|
||||||
warn("Failed setting mode/owner on %s", p);
|
warn("Failed setting mode/owner on %s", p);
|
||||||
}
|
}
|
||||||
|
globfree(&gl);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'f':
|
case 'f':
|
||||||
|
|||||||
Reference in new issue
Block a user