mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 05:43:33 +08:00
Update to FreeBSD head 2017-04-04
Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
This commit is contained in:
@@ -514,6 +514,7 @@ parse_client_lease_statement(FILE *cfile, int is_static)
|
||||
token = peek_token(&val, cfile);
|
||||
if (token == EOF) {
|
||||
parse_warn("unterminated lease declaration.");
|
||||
free_client_lease(lease);
|
||||
return;
|
||||
}
|
||||
if (token == RBRACE)
|
||||
@@ -715,6 +716,7 @@ parse_option_decl(FILE *cfile, struct option_data *options)
|
||||
parse_warn("expecting identifier after '.'");
|
||||
if (token != SEMI)
|
||||
skip_to_semi(cfile);
|
||||
free(vendor);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
@@ -727,6 +729,7 @@ parse_option_decl(FILE *cfile, struct option_data *options)
|
||||
if (!universe) {
|
||||
parse_warn("no vendor named %s.", vendor);
|
||||
skip_to_semi(cfile);
|
||||
free(vendor);
|
||||
return (NULL);
|
||||
}
|
||||
} else {
|
||||
@@ -748,6 +751,7 @@ parse_option_decl(FILE *cfile, struct option_data *options)
|
||||
parse_warn("no option named %s for vendor %s",
|
||||
val, vendor);
|
||||
skip_to_semi(cfile);
|
||||
free(vendor);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user