smartdns: bump copyright to 2023, and fix some typo

This commit is contained in:
Nick Peng
2023-01-20 00:05:14 +08:00
parent 1f40577ef0
commit 13d028df0d
70 changed files with 717 additions and 621 deletions

View File

@@ -436,8 +436,10 @@ radix_node_t
node->parent = new_node;
} else {
if ((glue = malloc(sizeof(*glue))) == NULL)
if ((glue = malloc(sizeof(*glue))) == NULL) {
free(new_node);
return (NULL);
}
memset(glue, '\0', sizeof(*glue));
glue->bit = differ_bit;
glue->prefix = NULL;