]> granicus.if.org Git - pgbouncer/commitdiff
getaddrinfo_a: drop double-alloc
authorMarko Kreen <markokr@gmail.com>
Mon, 29 Oct 2012 15:20:01 +0000 (17:20 +0200)
committerMarko Kreen <markokr@gmail.com>
Mon, 29 Oct 2012 15:20:01 +0000 (17:20 +0200)
src/dnslookup.c

index ff899657194baf82599bb7a359da9c81e864d267..fd5200daeedbc7b67ca0057df13597956a8c4a9d 100644 (file)
@@ -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;