mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
nspawn: fix memleak
Fixes oss-fuzz#13691.
This commit is contained in:
@@ -304,7 +304,7 @@ int overlay_mount_parse(CustomMount **l, size_t *n, const char *s, bool read_onl
|
||||
/* If the upper directory is unspecified, then let's create it automatically as a throw-away directory
|
||||
* in /var/tmp */
|
||||
if (isempty(upper))
|
||||
upper = NULL;
|
||||
upper = mfree(upper);
|
||||
else if (!source_path_is_valid(upper))
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user