diff --git a/proc_parse.c b/proc_parse.c index 744121249..ce0ececa5 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -962,6 +962,8 @@ static int parse_mountinfo_ent(char *str, struct mount_info *new, char **fsname) goto err; new->mountpoint = xrealloc(new->mountpoint, strlen(new->mountpoint) + 1); + if (!new->mountpoint) + goto err; new->s_dev = MKKDEV(kmaj, kmin); new->flags = 0;