1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2026-03-18 00:49:45 +00:00

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

This commit is contained in:
Daniel Stenberg
2004-05-27 07:10:36 +00:00
parent 76f520955d
commit 080f8f4cd4

View File

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