struct _compiler_state includes the member ai regardless of INET6;
gen_scode() assigns it in two instances regardless of INET6 and in one
instance if INET6 is not defined. Therefore the initialization and the
conditional memory deallocation should not be specific to INET6.
initchunks(&cstate);
cstate.no_optimize = 0;
-#ifdef INET6
cstate.ai = NULL;
-#endif
cstate.e = NULL;
cstate.ic.root = NULL;
cstate.ic.cur_mark = 0;
goto quit;
}
if (pcap_parse(scanner, &cstate) != 0) {
-#ifdef INET6
if (cstate.ai != NULL)
freeaddrinfo(cstate.ai);
-#endif
if (cstate.e != NULL)
free(cstate.e);
rc = PCAP_ERROR;