diff --git a/src/lib/ares_sysconfig.c b/src/lib/ares_sysconfig.c index 6b5408da..825008b7 100644 --- a/src/lib/ares_sysconfig.c +++ b/src/lib/ares_sysconfig.c @@ -624,6 +624,7 @@ static ares_status_t ares__init_sysconfig_windows(ares_sysconfig_t *sysconfig) if (get_SuffixList_Windows(&line)) { sysconfig->domains = ares__strsplit(line, ", ", &sysconfig->ndomains); + ares_free(line); if (sysconfig->domains == NULL) { status = ARES_EFILE; }