Commit c58802ed authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

proc parse: remember to free mnt entry if parse() fails

Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent f59267f3
...@@ -1390,6 +1390,8 @@ struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid, bool for_dump) ...@@ -1390,6 +1390,8 @@ struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid, bool for_dump)
if (ret) { if (ret) {
pr_err("Failed to parse FS specific data on %s\n", pr_err("Failed to parse FS specific data on %s\n",
new->mountpoint); new->mountpoint);
mnt_entry_free(new);
new = NULL;
goto end; goto end;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment