Merge pull request #12016 from yuwata/fix-two-memleaks-found-by-oss-fuzz

Fix two memleaks found by oss fuzz
This commit is contained in:
Lennart Poettering
2019-03-15 17:33:48 +01:00
committed by GitHub
5 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -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;