projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a3c5ff
)
getaddrinfo_a: drop double-alloc
author
Marko Kreen
<markokr@gmail.com>
Mon, 29 Oct 2012 15:20:01 +0000
(17:20 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Mon, 29 Oct 2012 15:20:01 +0000
(17:20 +0200)
src/dnslookup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/dnslookup.c
b/src/dnslookup.c
index ff899657194baf82599bb7a359da9c81e864d267..fd5200daeedbc7b67ca0057df13597956a8c4a9d 100644
(file)
--- 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;