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:
parent
97f8d65503
commit
af5407b895
@ -324,6 +324,7 @@ read_config_file(ctx, filename)
|
||||
? &ctx->lhs : &ctx->rhs;
|
||||
*which = strdup(data);
|
||||
if (!*which) {
|
||||
fclose(fp);
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user