From 744c7456c7f31529d4b9eeb86f2b6551a0a38346 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Sat, 23 Apr 2011 02:20:59 +0200 Subject: [PATCH] Remote some dead code from dns-example.c Found by Dave Heart --- sample/dns-example.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sample/dns-example.c b/sample/dns-example.c index 2845cb99..f2c1e020 100644 --- a/sample/dns-example.c +++ b/sample/dns-example.c @@ -72,7 +72,6 @@ static void gai_callback(int err, struct evutil_addrinfo *ai, void *arg) { const char *name = arg; - struct evutil_addrinfo *ai_first = NULL; int i; if (err) { printf("%s: %s\n", name, evutil_gai_strerror(err)); @@ -95,8 +94,6 @@ gai_callback(int err, struct evutil_addrinfo *ai, void *arg) printf("[%d] %s: %s\n",i,name,buf); } } - if (ai_first) - evutil_freeaddrinfo(ai_first); } static void -- 2.40.0