1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

resolv: Fix memory leak with OOM during resolv.conf parsing [BZ #22095]

This commit is contained in:
Florian Weimer
2017-09-06 15:20:25 +02:00
parent c77eb96925
commit 5670c4ab25
2 changed files with 11 additions and 0 deletions

View File

@ -446,6 +446,11 @@ res_vinit_1 (FILE *fp, struct resolv_conf_parser *parser)
(&parser->nameserver_list);
if (p != NULL)
*p = sa;
else
{
free (sa);
return false;
}
}
continue;
}