Fix struct FILE * leak on error (in disabled by default hesiod support code).

Submitted by:	henning petersen <henning.petersen t-online de>
PR:	153756
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2011-01-08 10:56:58 +00:00
parent 97f8d65503
commit af5407b895

View File

@ -324,6 +324,7 @@ read_config_file(ctx, filename)
? &ctx->lhs : &ctx->rhs;
*which = strdup(data);
if (!*which) {
fclose(fp);
errno = ENOMEM;
return -1;
}