From: Sebastian Hahn Date: Sat, 23 Apr 2011 00:20:59 +0000 (+0200) Subject: Remote some dead code from dns-example.c X-Git-Tag: release-2.0.11-stable~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=744c7456c7f31529d4b9eeb86f2b6551a0a38346;p=libevent Remote some dead code from dns-example.c Found by Dave Heart --- 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