From: Marko Kreen Date: Mon, 29 Oct 2012 15:20:01 +0000 (+0200) Subject: getaddrinfo_a: drop double-alloc X-Git-Tag: pgbouncer_1_5_4~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdf74ac02e0a3bd31ff319c6157cd715fb5967a7;p=pgbouncer getaddrinfo_a: drop double-alloc --- diff --git a/src/dnslookup.c b/src/dnslookup.c index ff89965..fd5200d 100644 --- a/src/dnslookup.c +++ b/src/dnslookup.c @@ -265,7 +265,7 @@ static void impl_launch_query(struct DNSRequest *req) static const struct addrinfo hints = { .ai_socktype = SOCK_STREAM }; struct GaiContext *gctx = req->ctx->edns; - struct GaiRequest *grq = calloc(1, sizeof(*grq)); + struct GaiRequest *grq; int res; struct gaicb *cb;