aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inet.c b/src/inet.c
index 1a411f6..48e654b 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -183,6 +183,7 @@ static int inet_global_getaddrinfo(lua_State *L)
183 ret = getnameinfo(iterator->ai_addr, (socklen_t) iterator->ai_addrlen, 183 ret = getnameinfo(iterator->ai_addr, (socklen_t) iterator->ai_addrlen,
184 hbuf, (socklen_t) sizeof(hbuf), NULL, 0, NI_NUMERICHOST); 184 hbuf, (socklen_t) sizeof(hbuf), NULL, 0, NI_NUMERICHOST);
185 if (ret){ 185 if (ret){
186 freeaddrinfo(resolved);
186 lua_pushnil(L); 187 lua_pushnil(L);
187 lua_pushstring(L, socket_gaistrerror(ret)); 188 lua_pushstring(L, socket_gaistrerror(ret));
188 return 2; 189 return 2;