include ares_private.h to make sure we get the memdebug stuff included

This commit is contained in:
Daniel Stenberg 2004-02-17 07:40:31 +00:00
parent 59091fa860
commit d87981e4c1
3 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,8 @@ void ares_destroy(ares_channel channel)
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)
{

View File

@ -24,6 +24,7 @@
#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);

View File

@ -22,6 +22,7 @@
#endif
#include "ares.h"
#include "ares_private.h" /* for memdebug */
void ares_free_hostent(struct hostent *host)
{