free() allocated memory when the ares search can't be made

pull/1/head curl-7_12_0
Daniel Stenberg 21 years ago
parent 76f520955d
commit 080f8f4cd4
  1. 5
      ares_search.c

@ -124,7 +124,12 @@ void ares_search(ares_channel channel, const char *name, int dnsclass,
free(s); free(s);
} }
else else
{
/* failed, free the malloc()ed memory */
free(squery->name);
free(squery);
callback(arg, status, NULL, 0); callback(arg, status, NULL, 0);
}
} }
} }

Loading…
Cancel
Save