mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217143
@ -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