Memory leak fix.

This commit is contained in:
Nick Peng
2018-06-26 22:55:40 +08:00
parent 06bc0b1642
commit 359cef4e8c
9 changed files with 89 additions and 46 deletions

View File

@@ -71,7 +71,7 @@ void config_address_destroy(void)
int config_address(char *value)
{
struct dns_address *address;
struct dns_address *address = NULL;
char ip[MAX_IP_LEN];
char domain_key[DNS_MAX_CONF_CNAME_LEN];
char *begin = NULL;