for (i = 0; i < channel->ndomains; i++)
free(channel->domains[i]);
free(channel->domains);
- free(channel->sortlist);
+ if(channel->sortlist)
+ free(channel->sortlist);
free(channel->lookups);
while (channel->queries)
{
#include <stdlib.h>
#include "ares.h"
+#include "ares_private.h" /* for the memdebug */
static int name_length(const unsigned char *encoded, const unsigned char *abuf,
int alen);
#endif
#include "ares.h"
+#include "ares_private.h" /* for memdebug */
void ares_free_hostent(struct hostent *host)
{