Removed resolver cache, cleanup client code
[ircu2.10.12-pk.git] / ircd / list.c
index 10fe8406e11589591bfb1902783f02c08c34640c..813ccbca95cc53b1fab13527338d544f5d2d3081 100644 (file)
@@ -154,8 +154,11 @@ static void dealloc_connection(struct Connection* con)
 
   Debug((DEBUG_LIST, "Deallocating connection %p", con));
 
-  if (con_dns_reply(con))
-    --(con_dns_reply(con)->ref_count);
+  
+  if (con_dns_reply(con)) {
+    MyFree(con_dns_reply(con));
+    con_dns_reply(con) = 0;
+  }
   if (-1 < con_fd(con))
     close(con_fd(con));
   MsgQClear(&(con_sendQ(con)));