diff options
Diffstat (limited to 'ares_create_query.c')
-rw-r--r-- | ares_create_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_create_query.c b/ares_create_query.c index 8624e2f..a34dda7 100644 --- a/ares_create_query.c +++ b/ares_create_query.c @@ -130,7 +130,7 @@ int ares_create_query(const char *name, int dnsclass, int type, return ARES_EBADNAME; *buflen = len + HFIXEDSZ + QFIXEDSZ + (max_udp_size ? EDNSFIXEDSZ : 0); - *buf = malloc(*buflen); + *buf = ares_malloc(*buflen); if (!*buf) return ARES_ENOMEM; |